You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2002/04/03 07:28:04 UTC

cvs commit: httpd-2.0/modules/experimental cache_util.c

wrowe       02/04/02 21:28:04

  Modified:    modules/experimental cache_util.c
  Log:
    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.
  
  Revision  Changes    Path
  1.13      +1 -1      httpd-2.0/modules/experimental/cache_util.c
  
  Index: cache_util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/cache_util.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- cache_util.c	13 Mar 2002 20:47:46 -0000	1.12
  +++ cache_util.c	3 Apr 2002 05:28:04 -0000	1.13
  @@ -243,7 +243,7 @@
       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);