From: William A. Rowe Jr Date: Thu, 23 Aug 2007 08:12:15 +0000 (+0000) Subject: Necessary cast; deliberately truncate to short. X-Git-Tag: 2.3.0~1561 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6824947fcdfbccb7204c9fa7a8639b2ba4abd78;p=thirdparty%2Fapache%2Fhttpd.git Necessary cast; deliberately truncate to short. Supress the warning. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@568877 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_etag.c b/modules/http/http_etag.c index 427ebc78288..a7d3d9c0a99 100644 --- a/modules/http/http_etag.c +++ b/modules/http/http_etag.c @@ -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;