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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user