diff options
author | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2012-07-03 12:16:53 -0400 |
---|---|---|
committer | Dwayne C. Litzenberger <dlitz@dlitz.net> | 2012-07-03 12:16:53 -0400 |
commit | 3103b3789fb26d9cf9aba2d27f6458fc072ed85a (patch) | |
tree | c10e8a49763e66ab816247546a8a0e8137a6a33e /src/MD2.c | |
parent | daed1020833cb3c3258600300e48244e27ade086 (diff) | |
download | pycrypto-3103b3789fb26d9cf9aba2d27f6458fc072ed85a.tar.gz |
setup.py: Add more compiler warnings and fix unsigned-signed comparisons
Diffstat (limited to 'src/MD2.c')
-rw-r--r-- | src/MD2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,7 +51,7 @@ typedef unsigned int U32; typedef struct { U8 C[16], X[48]; - int count; + unsigned int count; U8 buf[16]; } hash_state; @@ -134,7 +134,7 @@ hash_digest (const hash_state *self) U8 padding[16]; U32 padlen; hash_state temp; - int i; + unsigned int i; memcpy(&temp, self, sizeof(hash_state)); padlen= 16-self->count; |