From: Jeff Trawick Date: Wed, 29 May 2002 14:26:00 +0000 (+0000) Subject: get mod_deflate to compile with compilers that care about the X-Git-Tag: 2.0.37~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad33c26cd6c667d02e33b50f8f99b41c856088ff;p=apache 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 --- diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 5b7b4ae6fd..3813a2782c 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -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; }