aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-12-06 15:49:45 +0000
committerdrh <drh@noemail.net>2013-12-06 15:49:45 +0000
commit65106c77bb5436a3a4ab16193cc9b98b9c09e228 (patch)
tree65a7b929e8f072b5fdc2ee321d78ddadd3229ff7 /src/os_unix.c
parent27964431ea27c6b6e979ba874356b1d33c06f88e (diff)
parent6f04b95f02eeb62bcf3901d6d4483bdf68c000ee (diff)
downloadsqlite-65106c77bb5436a3a4ab16193cc9b98b9c09e228.tar.gz
sqlite-65106c77bb5436a3a4ab16193cc9b98b9c09e228.zip
Update to the 3.8.2 release.
FossilOrigin-Name: e579661a7950fe9f8eb10012946100c874ba54b0
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 501b1b769..ab657dc7b 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4081,7 +4081,7 @@ static int unixShmSystemLock(
#ifdef SQLITE_DEBUG
{ u16 mask;
OSTRACE(("SHM-LOCK "));
- mask = (1<<(ofst+n)) - (1<<ofst);
+ mask = ofst>31 ? 0xffffffff : (1<<(ofst+n)) - (1<<ofst);
if( rc==SQLITE_OK ){
if( lockType==F_UNLCK ){
OSTRACE(("unlock %d ok", ofst));