Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make SHA1::addBytes(..., 0) a no-op instead of an assertion failure
  • Loading branch information
kahrl committed Dec 24, 2013
1 parent 3aa28bc commit bf9f50b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sha1.cpp
Expand Up @@ -146,7 +146,7 @@ void SHA1::process()
void SHA1::addBytes( const char* data, int num )
{
assert( data );
assert( num > 0 );
assert( num >= 0 );
// add these bytes to the running total
size += num;
// repeat until all data is processed
Expand Down

0 comments on commit bf9f50b

Please sign in to comment.