From c6824947fcdfbccb7204c9fa7a8639b2ba4abd78 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Thu, 23 Aug 2007 08:12:15 +0000 Subject: [PATCH] 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 --- modules/http/http_etag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/http/http_etag.c b/modules/http/http_etag.c index 427ebc7828..a7d3d9c0a9 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; -- 2.40.0