From: William A. Rowe Jr Date: Wed, 3 Apr 2002 05:29:35 +0000 (+0000) Subject: On second thought ... I can see some weird sign bit magic messing this X-Git-Tag: 2.0.35~50 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b768ad47e2bc05cf57ea6d43e4f3457c025a44f1;p=apache On second thought ... I can see some weird sign bit magic messing this up on some hypothetical CPU... better to cast the net expression. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94410 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/cache_util.c b/modules/experimental/cache_util.c index 81fe91b560..530a9c340e 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 = (int)j & 0xF; + ch = (int)(j & 0xF); j >>= 4; if (ch >= 10) y[i] = ch + ('A' - 10);