diff options
author | drh <drh@noemail.net> | 2015-01-01 23:02:01 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-01-01 23:02:01 +0000 |
commit | 4081d5da3bddb8b03e4d767df6011998cccbe858 (patch) | |
tree | 6e74ca5e49bd2864e5150036225beab10f50db73 /src/test8.c | |
parent | 149735d9461c65553b1f49e128211066912fa2af (diff) | |
download | sqlite-4081d5da3bddb8b03e4d767df6011998cccbe858.tar.gz sqlite-4081d5da3bddb8b03e4d767df6011998cccbe858.zip |
Add logic to releasetest.tcl that detects -fsanitize=undefined errors.
Fix a few false-positivies that come up when running the sanitize=undefined
test.
FossilOrigin-Name: 2835e79a0afec6e4d449ac9340afec068c2d4c11
Diffstat (limited to 'src/test8.c')
-rw-r--r-- | src/test8.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test8.c b/src/test8.c index 8bc835d63..407dd54c7 100644 --- a/src/test8.c +++ b/src/test8.c @@ -648,12 +648,12 @@ static int echoRowid(sqlite3_vtab_cursor *cur, sqlite_int64 *pRowid){ ** indeed the hash of the supplied idxStr. */ static int hashString(const char *zString){ - int val = 0; + u32 val = 0; int ii; for(ii=0; zString[ii]; ii++){ val = (val << 3) + (int)zString[ii]; } - return val; + return (int)(val&0x7fffffff); } /* |