From: Joe Orton Date: Tue, 13 Mar 2007 11:58:12 +0000 (+0000) Subject: * modules/http/http_etag.c (etag_uint64_to_hex): Fix maximum shift X-Git-Tag: 2.3.0~1881 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa24da9d42e0dd31c8422c2e682d65bd625275b2;p=apache * modules/http/http_etag.c (etag_uint64_to_hex): Fix maximum shift size, thanks to Ruediger. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@517654 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_etag.c b/modules/http/http_etag.c index 1ebdcb709b..427ebc7828 100644 --- a/modules/http/http_etag.c +++ b/modules/http/http_etag.c @@ -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) {