From ad33c26cd6c667d02e33b50f8f99b41c856088ff Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Wed, 29 May 2002 14:26:00 +0000 Subject: [PATCH] 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 --- modules/filters/mod_deflate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.40.0