Fix less-than-zero checks on unsigned numbers

This commit is contained in:
Brian White 2014-04-11 11:29:42 -04:00 committed by Paul Bakker
parent 4a9dc2a474
commit 12895d15f8
6 changed files with 6 additions and 6 deletions

View file

@ -242,7 +242,7 @@ void sha512_update( sha512_context *ctx, const unsigned char *input,
size_t fill;
unsigned int left;
if( ilen <= 0 )
if( ilen == 0 )
return;
left = (unsigned int) (ctx->total[0] & 0x7F);