mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Clarify and reduce redundancy in an assert() in walChecksumBytes().
FossilOrigin-Name: 3c53abf5e6df446d569040042363265737aa10fc8aaa20b31c587100c557c5e7
This commit is contained in:
@@ -871,10 +871,8 @@ static void walChecksumBytes(
|
||||
s1 = s2 = 0;
|
||||
}
|
||||
|
||||
assert( nByte>=8 );
|
||||
assert( (nByte&0x00000007)==0 );
|
||||
assert( nByte<=65536 );
|
||||
assert( nByte%4==0 );
|
||||
/* nByte is a multiple of 8 between 8 and 65536 */
|
||||
assert( nByte>=8 && (nByte&7)==0 && nByte<=65536 );
|
||||
|
||||
if( !nativeCksum ){
|
||||
do {
|
||||
|
Reference in New Issue
Block a user