]> granicus.if.org Git - apache/commitdiff
* modules/http/http_etag.c (etag_uint64_to_hex): Fix maximum shift
authorJoe Orton <jorton@apache.org>
Tue, 13 Mar 2007 11:58:12 +0000 (11:58 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 13 Mar 2007 11:58:12 +0000 (11:58 +0000)
size, thanks to Ruediger.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@517654 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_etag.c

index 1ebdcb709bba7a48ee1b7d171b286d99838946c1..427ebc782880b5c916f9b8e62f65f0bb5de1d65d 100644 (file)
@@ -35,7 +35,7 @@
 static char *etag_uint64_to_hex(char *next, apr_uint64_t u)
 {
     int printing = 0;
-    int shift = sizeof(unsigned long) * 8 - 4;
+    int shift = sizeof(apr_uint64_t) * 8 - 4;
     do {
         unsigned short next_digit = ((u >> shift) & (apr_uint64_t)0xf);
         if (next_digit) {