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

Minor simplification to the 32-bit varint decoder.

FossilOrigin-Name: 6ffd17b668a8ad561c37e89063afb6e7f8425e557e93025b7527fe3656585d77
This commit is contained in:
drh
2020-07-02 17:05:11 +00:00
parent e3863b5176
commit 15cedda902
3 changed files with 8 additions and 8 deletions

View File

@@ -1141,8 +1141,7 @@ u8 sqlite3GetVarint32(const unsigned char *p, u32 *v){
u64 v64;
u8 n;
p -= 2;
n = sqlite3GetVarint(p, &v64);
n = sqlite3GetVarint(p-2, &v64);
assert( n>3 && n<=9 );
if( (v64 & SQLITE_MAX_U32)!=v64 ){
*v = 0xffffffff;