From: William A. Rowe Jr Date: Wed, 3 Apr 2002 05:28:04 +0000 (+0000) Subject: A very safe cast for any ^2 based cpu. Are we expecting any trinary CPUs X-Git-Tag: 2.0.35~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2868570abf5c7692abcd2b51f71c21966d7510c;p=thirdparty%2Fapache%2Fhttpd.git A very safe cast for any ^2 based cpu. Are we expecting any trinary CPUs any time soon for Apache support? Cleans up an emit on 32 bit builds. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94409 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/cache_util.c b/modules/experimental/cache_util.c index 18354557a8f..81fe91b5600 100644 --- a/modules/experimental/cache_util.c +++ b/modules/experimental/cache_util.c @@ -243,7 +243,7 @@ CACHE_DECLARE(void) ap_cache_msec2hex(apr_time_t j, char *y) int i, ch; for (i = (sizeof(j) * 2)-1; i >= 0; i--) { - ch = j & 0xF; + ch = (int)j & 0xF; j >>= 4; if (ch >= 10) y[i] = ch + ('A' - 10);