aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-12-02 17:40:13 +0000
committerdrh <drh@noemail.net>2015-12-02 17:40:13 +0000
commitaf19f173d3b5172a46f65ab34cff77b8ed71cc3f (patch)
treed21f267d5ff7cc81e952cdb45dccbd08b3c4c0e5 /src
parentab37277367effdaa555c11b02a62d75b2e962de2 (diff)
downloadsqlite-af19f173d3b5172a46f65ab34cff77b8ed71cc3f.tar.gz
sqlite-af19f173d3b5172a46f65ab34cff77b8ed71cc3f.zip
Fix an incorrect, though harmless, assert() in the unix VFS.
FossilOrigin-Name: 4692ae84f93530e27d7c106a60236355e176b7fd
Diffstat (limited to 'src')
-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 31e3215b8..5f4cbca2a 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4045,7 +4045,7 @@ static int unixShmSystemLock(
assert( n==1 || lockType!=F_RDLCK );
/* Locks are within range */
- assert( n>=1 && n<SQLITE_SHM_NLOCK );
+ assert( n>=1 && n<=SQLITE_SHM_NLOCK );
if( pShmNode->h>=0 ){
/* Initialize the locking parameters */