Skip to content

Commit bf9f50b

Browse files
committedDec 24, 2013
Make SHA1::addBytes(..., 0) a no-op instead of an assertion failure
1 parent 3aa28bc commit bf9f50b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/sha1.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void SHA1::process()
146146
void SHA1::addBytes( const char* data, int num )
147147
{
148148
assert( data );
149-
assert( num > 0 );
149+
assert( num >= 0 );
150150
// add these bytes to the running total
151151
size += num;
152152
// repeat until all data is processed

0 commit comments

Comments
 (0)
Please sign in to comment.