mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Change a condition to a '%' operator in bitvec.c. (CVS 6940)
FossilOrigin-Name: 10250fe5c039dbef2e1614e6320f7bd354c10211
This commit is contained in:
12
manifest
12
manifest
@@ -1,5 +1,5 @@
|
|||||||
C More\ssimplifications\sto\spager.c.\s(CVS\s6939)
|
C Change\sa\scondition\sto\sa\s'%'\soperator\sin\sbitvec.c.\s(CVS\s6940)
|
||||||
D 2009-07-25T17:08:36
|
D 2009-07-25T17:33:26
|
||||||
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
|
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
|
||||||
F Makefile.in df9359da7a726ccb67a45db905c5447d5c00c6ef
|
F Makefile.in df9359da7a726ccb67a45db905c5447d5c00c6ef
|
||||||
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
|
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
|
||||||
@@ -104,7 +104,7 @@ F src/analyze.c e239496cfb5394ac8867f1c112905ddab8d01cd9
|
|||||||
F src/attach.c 13995348fc5a26cdd136a50806faf292aabc173f
|
F src/attach.c 13995348fc5a26cdd136a50806faf292aabc173f
|
||||||
F src/auth.c 802a9439dfa0b8c208b10055cba400e82ef18025
|
F src/auth.c 802a9439dfa0b8c208b10055cba400e82ef18025
|
||||||
F src/backup.c 6f1c2d9862c8a3feb7739dfcca02c1f5352e37f3
|
F src/backup.c 6f1c2d9862c8a3feb7739dfcca02c1f5352e37f3
|
||||||
F src/bitvec.c cfbf6af5b0ababb4f06ed3e75c616dadaf47fcbd
|
F src/bitvec.c e08f6c1a9551b88081fc737916c6c3fd5029a6cf
|
||||||
F src/btmutex.c 0f43a75bb5b8147b386e8e1c3e71ba734e3863b7
|
F src/btmutex.c 0f43a75bb5b8147b386e8e1c3e71ba734e3863b7
|
||||||
F src/btree.c 46f24d0b659583bae13b7f22534e5f529ebc0684
|
F src/btree.c 46f24d0b659583bae13b7f22534e5f529ebc0684
|
||||||
F src/btree.h 577448a890c2ab9b21e6ab74f073526184bceebe
|
F src/btree.h 577448a890c2ab9b21e6ab74f073526184bceebe
|
||||||
@@ -738,7 +738,7 @@ F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
|
|||||||
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
|
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
|
||||||
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
|
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
|
||||||
F tool/vdbe-compress.tcl 672f81d693a03f80f5ae60bfefacd8a349e76746
|
F tool/vdbe-compress.tcl 672f81d693a03f80f5ae60bfefacd8a349e76746
|
||||||
P 5b70b5c19cd587a8afbf2909ac7a4c04aea20f44
|
P 533d6cc67a3b6467db5b83c5ca535d229d36ad27
|
||||||
R 54d659d40a4c9377c5cad3305a635f7a
|
R b24dc1060c0e41c7234c2870603ba4a6
|
||||||
U drh
|
U drh
|
||||||
Z a386f47c7cec36b7a24969141c7a96bc
|
Z 737abbbb5ad16338e62e8e8aa8bd1e9e
|
||||||
|
@@ -1 +1 @@
|
|||||||
533d6cc67a3b6467db5b83c5ca535d229d36ad27
|
10250fe5c039dbef2e1614e6320f7bd354c10211
|
@@ -34,7 +34,7 @@
|
|||||||
** start of a transaction, and is thus usually less than a few thousand,
|
** start of a transaction, and is thus usually less than a few thousand,
|
||||||
** but can be as large as 2 billion for a really big database.
|
** but can be as large as 2 billion for a really big database.
|
||||||
**
|
**
|
||||||
** @(#) $Id: bitvec.c,v 1.16 2009/07/18 20:01:37 drh Exp $
|
** @(#) $Id: bitvec.c,v 1.17 2009/07/25 17:33:26 drh Exp $
|
||||||
*/
|
*/
|
||||||
#include "sqliteInt.h"
|
#include "sqliteInt.h"
|
||||||
|
|
||||||
@@ -146,8 +146,7 @@ int sqlite3BitvecTest(Bitvec *p, u32 i){
|
|||||||
u32 h = BITVEC_HASH(i++);
|
u32 h = BITVEC_HASH(i++);
|
||||||
while( p->u.aHash[h] ){
|
while( p->u.aHash[h] ){
|
||||||
if( p->u.aHash[h]==i ) return 1;
|
if( p->u.aHash[h]==i ) return 1;
|
||||||
h++;
|
h = (h+1) % BITVEC_NINT;
|
||||||
if( h>=BITVEC_NINT ) h = 0;
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user