diff options
author | drh <drh@noemail.net> | 2009-04-02 17:22:41 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2009-04-02 17:22:41 +0000 |
commit | de4679856939f285fb796efabe2d0dcd37a8adde (patch) | |
tree | cb90005a5fe783f273ebfd8bb38eba0418a3f905 /src | |
parent | e8902a70fe07fcbc3929ed1b44f46fd6dea418b8 (diff) | |
download | sqlite-de4679856939f285fb796efabe2d0dcd37a8adde.tar.gz sqlite-de4679856939f285fb796efabe2d0dcd37a8adde.zip |
Fix a couple of harmless nuisance warnings. (CVS 6438)
FossilOrigin-Name: 53dac0a455b9a822f710c257711e8d319060cf84
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 | ||||
-rw-r--r-- | src/memjournal.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c index 072e14e07..57a1a86c2 100644 --- a/src/main.c +++ b/src/main.c @@ -14,7 +14,7 @@ ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** -** $Id: main.c,v 1.534 2009/03/23 04:33:32 danielk1977 Exp $ +** $Id: main.c,v 1.535 2009/04/02 17:22:42 drh Exp $ */ #include "sqliteInt.h" @@ -418,7 +418,7 @@ static int setupLookaside(sqlite3 *db, void *pBuf, int sz, int cnt){ if( pStart ){ int i; LookasideSlot *p; - assert( sz > sizeof(LookasideSlot*) ); + assert( sz > (int)sizeof(LookasideSlot*) ); p = (LookasideSlot*)pStart; for(i=cnt-1; i>=0; i--){ p->pNext = db->lookaside.pFree; diff --git a/src/memjournal.c b/src/memjournal.c index 930c78571..0261fefa2 100644 --- a/src/memjournal.c +++ b/src/memjournal.c @@ -14,7 +14,7 @@ ** The in-memory rollback journal is used to journal transactions for ** ":memory:" databases and when the journal_mode=MEMORY pragma is used. ** -** @(#) $Id: memjournal.c,v 1.9 2009/04/01 23:09:44 drh Exp $ +** @(#) $Id: memjournal.c,v 1.10 2009/04/02 17:22:42 drh Exp $ */ #include "sqliteInt.h" @@ -31,7 +31,7 @@ typedef struct FileChunk FileChunk; ** a power-of-two allocation. This mimimizes wasted space in power-of-two ** memory allocators. */ -#define JOURNAL_CHUNKSIZE (1024-sizeof(FileChunk*)) +#define JOURNAL_CHUNKSIZE ((int)(1024-sizeof(FileChunk*))) /* Macro to find the minimum of two numeric values. */ |