diff options
Diffstat (limited to 'dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch')
-rw-r--r-- | dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch b/dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch new file mode 100644 index 000000000000..8822737097fc --- /dev/null +++ b/dev-python/pycrypto/files/pycrypto-2.0.1-uint32.patch @@ -0,0 +1,39 @@ +--- src/RIPEMD.c.agriffis 2005-06-13 20:14:57.000000000 -0400 ++++ src/RIPEMD.c 2006-02-02 08:59:43.000000000 -0500 +@@ -99,15 +99,9 @@ + (c) = ROL((c), 10);\ + } + +-typedef unsigned char byte; /* unsigned 8-bit integer */ +-#ifdef __alpha__ +-typedef unsigned int word; /* unsigned 32-bit integer */ +-#elif defined(__amd64__) +-typedef uint32_t word; /* unsigned 32-bit integer */ +-#else +-typedef unsigned long word; /* unsigned 32-bit integer */ +-#endif +-typedef unsigned char BYTE; ++typedef unsigned char byte; ++typedef uint32_t word; ++ + #define RMD_DATASIZE 64 + #define RMD_DIGESTSIZE 20 + #define RMDsize 160 +@@ -137,7 +131,7 @@ + { + word tmp; + int dataCount, i; +- BYTE *p; ++ byte *p; + + /* Update bitcount */ + tmp = shsInfo->countLo; +@@ -151,7 +145,7 @@ + /* Handle any leading odd-sized chunks */ + if(dataCount) + { +- p = ( BYTE * ) shsInfo->data + dataCount; ++ p = ( byte * ) shsInfo->data + dataCount; + + dataCount = RMD_DATASIZE - dataCount; + if( count < dataCount ) |