diff options
author | danielk1977 <danielk1977@noemail.net> | 2008-11-17 19:18:54 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2008-11-17 19:18:54 +0000 |
commit | 00e136135e380dfdf8ffe59503e0e0b518fd2cc5 (patch) | |
tree | 20cccbeb3814179621eb63c1061f2feb53b932b1 /src/mutex_unix.c | |
parent | 234329761a60ea2603eeead12c6c18871d6faecb (diff) | |
download | sqlite-00e136135e380dfdf8ffe59503e0e0b518fd2cc5.tar.gz sqlite-00e136135e380dfdf8ffe59503e0e0b518fd2cc5.zip |
Modifications to avoid unsigned/signed comparisons in various files. (CVS 5914)
FossilOrigin-Name: 8009220c36635dd9b6efea7dc13281ca9625c40a
Diffstat (limited to 'src/mutex_unix.c')
-rw-r--r-- | src/mutex_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mutex_unix.c b/src/mutex_unix.c index b6e4c7643..f0e0879af 100644 --- a/src/mutex_unix.c +++ b/src/mutex_unix.c @@ -11,7 +11,7 @@ ************************************************************************* ** This file contains the C functions that implement mutexes for pthreads ** -** $Id: mutex_unix.c,v 1.14 2008/11/17 08:05:32 chw Exp $ +** $Id: mutex_unix.c,v 1.15 2008/11/17 19:18:55 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -157,7 +157,7 @@ static sqlite3_mutex *pthreadMutexAlloc(int iType){ } default: { assert( iType-2 >= 0 ); - assert( iType-2 < sizeof(staticMutexes)/sizeof(staticMutexes[0]) ); + assert( iType-2 < ArraySize(staticMutexes) ); p = &staticMutexes[iType-2]; p->id = iType; break; |