diff options
author | drh <drh@noemail.net> | 2016-03-04 21:18:09 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-03-04 21:18:09 +0000 |
commit | 6f17c09fcfa7c36c4e462243bedabce7ad255170 (patch) | |
tree | 077fe2d07219726d854de851c5b1e5fbf378a8b0 /src/util.c | |
parent | 3298a641a2b1c883b34e9d85541db50d6e2d1ff9 (diff) | |
download | sqlite-6f17c09fcfa7c36c4e462243bedabce7ad255170.tar.gz sqlite-6f17c09fcfa7c36c4e462243bedabce7ad255170.zip |
Fix an assert() in sqlite3VarintLen(), even though it is impossible to hit
in SQLite due to the way sqlite3VarintLen() is used.
FossilOrigin-Name: 251424c5869f43012fc1e1a545de362036b883db
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c index 81274260f..cf9aa3aa3 100644 --- a/src/util.c +++ b/src/util.c @@ -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; } |