mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Make SHA1::addBytes(..., 0) a no-op instead of an assertion failure
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user