You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2007/03/13 12:58:13 UTC

svn commit: r517654 - /httpd/httpd/trunk/modules/http/http_etag.c

Author: jorton
Date: Tue Mar 13 04:58:12 2007
New Revision: 517654

URL: http://svn.apache.org/viewvc?view=rev&rev=517654
Log:
* modules/http/http_etag.c (etag_uint64_to_hex): Fix maximum shift
size, thanks to Ruediger.

Modified:
    httpd/httpd/trunk/modules/http/http_etag.c

Modified: httpd/httpd/trunk/modules/http/http_etag.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/http/http_etag.c?view=diff&rev=517654&r1=517653&r2=517654
==============================================================================
--- httpd/httpd/trunk/modules/http/http_etag.c (original)
+++ httpd/httpd/trunk/modules/http/http_etag.c Tue Mar 13 04:58:12 2007
@@ -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) {