]> granicus.if.org Git - apache/commitdiff
On second thought ... I can see some weird sign bit magic messing this
authorWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 3 Apr 2002 05:29:35 +0000 (05:29 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Wed, 3 Apr 2002 05:29:35 +0000 (05:29 +0000)
  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

modules/experimental/cache_util.c

index 81fe91b560049042db0bac6ca95b54dbc6b579fc..530a9c340eaea6074e09545101ed2cfab50ffdaf 100644 (file)
@@ -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);