X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fsha1.cpp;h=6ed7385d51fa255b719eee7a1ec634319fda0148;hb=56195dc2e45b85b7177cfa97aade77e92cff8805;hp=98180adc7ec3aa2a4a1eeb616ca2cfee691a55b5;hpb=52d857cf1527948e1db5eead457e51b6741de8a2;p=oweals%2Fminetest.git diff --git a/src/sha1.cpp b/src/sha1.cpp index 98180adc7..6ed7385d5 100644 --- a/src/sha1.cpp +++ b/src/sha1.cpp @@ -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