1
0
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:
drh
2025-03-24 23:08:40 +00:00
parent e6e453def6
commit b0c3118cad
3 changed files with 10 additions and 12 deletions

View File

@@ -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 {