Explorar o código

Fixed cast macro in byteswap
Author: jgg
Date: 1999-11-14 01:47:55 GMT
Fixed cast macro in byteswap

Arch Librarian %!s(int64=22) %!d(string=hai) anos
pai
achega
59257a2194
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      apt-pkg/contrib/md5.cc

+ 2 - 2
apt-pkg/contrib/md5.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: md5.cc,v 1.6 1999/10/31 06:32:28 jgg Exp $
+// $Id: md5.cc,v 1.7 1999/11/14 01:47:55 jgg Exp $
 /* ######################################################################
 /* ######################################################################
    
    
    MD5Sum - MD5 Message Digest Algorithm.
    MD5Sum - MD5 Message Digest Algorithm.
@@ -59,7 +59,7 @@ static void byteSwap(uint8_t *buf, unsigned words)
    
    
    do 
    do 
    {
    {
-      *buf++ = (UINT32)((unsigned)p[3] << 8 | p[2]) << 16 |
+      *buf++ = (uint32_t)((unsigned)p[3] << 8 | p[2]) << 16 |
 	 ((unsigned)p[1] << 8 | p[0]);
 	 ((unsigned)p[1] << 8 | p[0]);
       p += 4;
       p += 4;
    } while (--words);
    } while (--words);