httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r568877 - /httpd/httpd/trunk/modules/http/http_etag.c
Date Thu, 23 Aug 2007 08:12:15 GMT
Author: wrowe
Date: Thu Aug 23 01:12:15 2007
New Revision: 568877

URL: http://svn.apache.org/viewvc?rev=568877&view=rev
Log:
Necessary cast; deliberately truncate to short.

Supress the warning.

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?rev=568877&r1=568876&r2=568877&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/http/http_etag.c (original)
+++ httpd/httpd/trunk/modules/http/http_etag.c Thu Aug 23 01:12:15 2007
@@ -37,7 +37,8 @@
     int printing = 0;
     int shift = sizeof(apr_uint64_t) * 8 - 4;
     do {
-        unsigned short next_digit = ((u >> shift) & (apr_uint64_t)0xf);
+        unsigned short next_digit = (unsigned short)
+                                    ((u >> shift) & (apr_uint64_t)0xf);
         if (next_digit) {
             *next++ = HEX_DIGITS[next_digit];
             printing = 1;



Mime
View raw message