diff options
author | danielk1977 <danielk1977@noemail.net> | 2004-05-11 06:17:21 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2004-05-11 06:17:21 +0000 |
commit | 6490bebd6227c8616388c8e69e1c51e66e469a2d (patch) | |
tree | 58bc5295e8566ac332c87b9b506418d2f4c2c1ab /src/util.c | |
parent | 0dbe72b95224b0c15a9ebdfa08a063a2e9e1665f (diff) | |
download | sqlite-6490bebd6227c8616388c8e69e1c51e66e469a2d.tar.gz sqlite-6490bebd6227c8616388c8e69e1c51e66e469a2d.zip |
Minor changes to the vdbe so that more tests pass. (CVS 1352)
FossilOrigin-Name: 16078fe0ea146537f75b869e6b0cce202af6781b
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c index 3052116bb..5524245d9 100644 --- a/src/util.c +++ b/src/util.c @@ -14,7 +14,7 @@ ** This file contains functions for allocating memory, comparing ** strings, and stuff like that. ** -** $Id: util.c,v 1.79 2004/05/10 10:35:00 danielk1977 Exp $ +** $Id: util.c,v 1.80 2004/05/11 06:17:22 danielk1977 Exp $ */ #include "sqliteInt.h" #include <stdarg.h> @@ -1148,7 +1148,7 @@ int sqlite3GetVarint(const unsigned char *p, u64 *v){ u64 x = p[0] & 0x7f; int n = 0; while( (p[n++]&0x80)!=0 ){ - x |= (p[n]&0x7f)<<(n*7); + x |= ((u64)(p[n]&0x7f))<<(n*7); } *v = x; return n; |