diff options
author | Richard Levitte <levitte@openssl.org> | 2004-05-27 09:20:42 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2004-05-27 09:20:42 +0000 |
commit | ef16f450810e7174161f10aa94f6e55469783f28 (patch) | |
tree | f2d12dd6155cd58135b7b5de2eb77f9b3d08dd1e /crypto/sha | |
parent | 4d692e1ba090fd6180ab361b471acb9241ca3c67 (diff) |
Since num is now a size_t, it's not necssary to check for less than 0,
AND it avoids warnings on certain systems.
Diffstat (limited to 'crypto/sha')
-rw-r--r-- | crypto/sha/sha_locl.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/sha/sha_locl.h b/crypto/sha/sha_locl.h index 01fc6e22eb..210f22f7a6 100644 --- a/crypto/sha/sha_locl.h +++ b/crypto/sha/sha_locl.h @@ -334,7 +334,7 @@ void HASH_BLOCK_HOST_ORDER (SHA_CTX *c, const void *d, size_t num) c->h3=(c->h3+B)&0xffffffffL; c->h4=(c->h4+C)&0xffffffffL; - if (--num <= 0) break; + if (--num == 0) break; A=c->h0; B=c->h1; @@ -461,7 +461,7 @@ void HASH_BLOCK_DATA_ORDER (SHA_CTX *c, const void *p, size_t num) c->h3=(c->h3+B)&0xffffffffL; c->h4=(c->h4+C)&0xffffffffL; - if (--num <= 0) break; + if (--num == 0) break; A=c->h0; B=c->h1; @@ -537,7 +537,7 @@ void HASH_BLOCK_HOST_ORDER (SHA_CTX *c, const void *d, size_t num) c->h3=(c->h3+D)&0xffffffffL; c->h4=(c->h4+E)&0xffffffffL; - if (--num <= 0) break; + if (--num == 0) break; A=c->h0; B=c->h1; @@ -583,7 +583,7 @@ void HASH_BLOCK_DATA_ORDER (SHA_CTX *c, const void *p, size_t num) c->h3=(c->h3+D)&0xffffffffL; c->h4=(c->h4+E)&0xffffffffL; - if (--num <= 0) break; + if (--num == 0) break; A=c->h0; B=c->h1; |