Commit 50701c5d authored by Jeff Trawick's avatar Jeff Trawick
Browse files

get mod_deflate to compile with compilers that care about the

signed-ness of char *

it looks like it should work fine, but it is untested


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95350 13f79535-47bb-0310-9956-ffa450edef68
parent 9ff86ec1
Loading
Loading
Loading
Loading
+3 −3
Changes for modules/filters/mod_deflate.c: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -149,17 +149,17 @@ static void putLong(char *string, unsigned long x)

/* Inputs a string and returns a long.
 */
static unsigned long getLong(char *string)
static unsigned long getLong(unsigned char *string)
{
    int n = 3;
    unsigned long x = 0;

    while (n) {
        x |= (unsigned long)((unsigned char)string[n--]) & 0xff;
        x |= (unsigned long)(string[n--]) & 0xff;
        x <<= 8;
    }

    x |= (unsigned long)((unsigned char)string[0]) & 0xff;
    x |= (unsigned long)(string[0]) & 0xff;
    return x;
}