httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r517654 - /httpd/httpd/trunk/modules/http/http_etag.c
Date Tue, 13 Mar 2007 11:58:13 GMT
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) {



Mime
View raw message