mirror of
https://github.com/minetest/minetest.git
synced 2024-11-05 07:13:46 +01:00
Make SHA1::addBytes(..., 0) a no-op instead of an assertion failure
This commit is contained in:
parent
3aa28bc7a2
commit
bf9f50bc0e
@ -146,7 +146,7 @@ void SHA1::process()
|
|||||||
void SHA1::addBytes( const char* data, int num )
|
void SHA1::addBytes( const char* data, int num )
|
||||||
{
|
{
|
||||||
assert( data );
|
assert( data );
|
||||||
assert( num > 0 );
|
assert( num >= 0 );
|
||||||
// add these bytes to the running total
|
// add these bytes to the running total
|
||||||
size += num;
|
size += num;
|
||||||
// repeat until all data is processed
|
// repeat until all data is processed
|
||||||
|
Loading…
Reference in New Issue
Block a user