1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix an assert() in sqlite3VarintLen(), even though it is impossible to hit

in SQLite due to the way sqlite3VarintLen() is used.

FossilOrigin-Name: 251424c5869f43012fc1e1a545de362036b883db
This commit is contained in:
drh
2016-03-04 21:18:09 +00:00
parent 3298a641a2
commit 6f17c09fcf
3 changed files with 8 additions and 9 deletions

View File

@@ -1093,7 +1093,7 @@ u8 sqlite3GetVarint32(const unsigned char *p, u32 *v){
*/
int sqlite3VarintLen(u64 v){
int i;
for(i=1; (v >>= 7)!=0; i++){ assert( i<9 ); }
for(i=1; (v >>= 7)!=0; i++){ assert( i<10 ); }
return i;
}