From 0a39b2746517e877e0f7f5572e0260f0d212b37e Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Fri, 4 Dec 2015 15:42:15 +0000 Subject: [PATCH] removing floor() usage as not available everywhere git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1717985 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_session.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/http2/h2_session.c b/modules/http2/h2_session.c index e5a158c86a..f91fb7aabe 100644 --- a/modules/http2/h2_session.c +++ b/modules/http2/h2_session.c @@ -14,7 +14,6 @@ */ #include -#include #include #include #include @@ -1342,7 +1341,7 @@ struct h2_stream *h2_session_push(h2_session *session, h2_stream *is, static int valid_weight(float f) { - int w = floor(f); + int w = (int)f; return (w < NGHTTP2_MIN_WEIGHT? NGHTTP2_MIN_WEIGHT : (w > NGHTTP2_MAX_WEIGHT)? NGHTTP2_MAX_WEIGHT : w); } -- 2.50.1