From: Ken Hornstein Date: Mon, 5 Mar 2012 18:21:04 +0000 (-0500) Subject: Change this to use "uint32_t" for a 32-bit type, otherwise we can get X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=23346694ffc1337359c76ea3b6b158f4dc3e0c6d;p=mmh Change this to use "uint32_t" for a 32-bit type, otherwise we can get wrong MD5 checksums on 64-bit systems. Score another one for the test suite! --- diff --git a/h/md5.h b/h/md5.h index e49ef4e..ff52413 100644 --- a/h/md5.h +++ b/h/md5.h @@ -14,6 +14,12 @@ #include /* + * We need this for uint32_t + */ + +#include + +/* * Use prototypes for nmh/mh */ #define PROTOTYPES 1 @@ -35,7 +41,7 @@ typedef unsigned char *POINTER; typedef unsigned short int UINT2; /* UINT4 defines a four byte word */ -typedef unsigned long int UINT4; +typedef uint32_t UINT4; /* PROTO_LIST is defined depending on how PROTOTYPES is defined above. If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it