Commit 31455fdd authored by Stefan Eissing's avatar Stefan Eissing
Browse files

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
parent 1d66e4df
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -14,7 +14,6 @@
 */

#include <assert.h>
#include <math.h>
#include <apr_thread_cond.h>
#include <apr_base64.h>
#include <apr_strings.h>
@@ -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);
}