Commit 675f5b72 authored by William A. Rowe Jr's avatar William A. Rowe Jr
Browse files

  Some cast magic for intentional float/int transformations.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89711 13f79535-47bb-0310-9956-ffa450edef68
parent 45c6a448
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2479,7 +2479,7 @@ static void reduce_uri(request_rec *r)
    char host[LONG_STRING_LEN];
    char buf[MAX_STRING_LEN];
    char *olduri;
    int l;
    apr_size_t l;

    cp = (char *)ap_http_method(r);
    l  = strlen(cp);
@@ -3041,7 +3041,7 @@ static int rewrite_rand(int l, int h)
     * result. Doing an integer modulus would only use the lower-order bits
     * which may not be as uniformly random.
     */
    return ((double)(rand() % RAND_MAX) / RAND_MAX) * (h - l + 1) + l;
    return (int)((double)(rand() % RAND_MAX) / RAND_MAX) * (h - l + 1) + l;
}

static char *select_random_value_part(request_rec *r, char *value)