/ Check-in [c81da6f9]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a signed/unsigned comparison compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c81da6f98d89935442c447a51736e11baf5a7bc1
User & Date: drh 2011-03-23 22:54:59
Context
2011-03-24
01:34
The changes to fix [f7b4edece25c9948] mean that the schema is always loaded whenever a prepared statement is running. This means that a couple of branches can be eliminated and one operand of OP_ParseSchema can be removed. check-in: b6e268fc user: drh tags: trunk
2011-03-23
22:54
Fix a signed/unsigned comparison compiler warning. check-in: c81da6f9 user: drh tags: trunk
22:51
Update the test_vfstrace.c shim to conform to the new VFS interface for xSetSystemCall and xGetSystemCall. check-in: ad4dc7b9 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/main.c.

   531    531         };
   532    532         unsigned int i;
   533    533         rc = SQLITE_ERROR; /* IMP: R-42790-23372 */
   534    534         for(i=0; i<ArraySize(aFlagOp); i++){
   535    535           if( aFlagOp[i].op==op ){
   536    536             int onoff = va_arg(ap, int);
   537    537             int *pRes = va_arg(ap, int*);
   538         -          u32 oldFlags = db->flags;
          538  +          int oldFlags = db->flags;
   539    539             if( onoff>0 ){
   540    540               db->flags |= aFlagOp[i].mask;
   541    541             }else if( onoff==0 ){
   542    542               db->flags &= ~aFlagOp[i].mask;
   543    543             }
   544    544             if( oldFlags!=db->flags ){
   545    545               sqlite3ExpirePreparedStatements(db);