You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2007/08/23 10:12:15 UTC
svn commit: r568877 - /httpd/httpd/trunk/modules/http/http_etag.c
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;