From: Stefan Eissing Date: Fri, 4 Dec 2015 15:43:14 +0000 (+0000) Subject: merging floor() removal from trunk X-Git-Tag: 2.4.18~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=235bea2f99a0b661ed7ddbea356cf4ae6a37cd99;p=thirdparty%2Fapache%2Fhttpd.git merging floor() removal from trunk git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1717986 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http2/h2_session.c b/modules/http2/h2_session.c index e5a158c86a0..f91fb7aabe7 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); }