]> granicus.if.org Git - apache/commitdiff
Necessary cast; deliberately truncate to short.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2007 08:12:15 +0000 (08:12 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 23 Aug 2007 08:12:15 +0000 (08:12 +0000)
Supress the warning.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@568877 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_etag.c

index 427ebc782880b5c916f9b8e62f65f0bb5de1d65d..a7d3d9c0a99f6cca7019cca23258dc16d4b50c47 100644 (file)
@@ -37,7 +37,8 @@ static char *etag_uint64_to_hex(char *next, apr_uint64_t u)
     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;