1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Fix a compile error in an assert() and a warning with MSVC builds. (CVS 6032)

FossilOrigin-Name: 8b8f6a6ab597e06e60557ab56c6ee7f8522ed570
This commit is contained in:
shane
2008-12-16 17:20:38 +00:00
parent 66e8008404
commit 153015969b
4 changed files with 13 additions and 13 deletions

View File

@@ -12,7 +12,7 @@
**
** Memory allocation functions used throughout sqlite.
**
** $Id: malloc.c,v 1.52 2008/12/16 13:46:30 drh Exp $
** $Id: malloc.c,v 1.53 2008/12/16 17:20:38 shane Exp $
*/
#include "sqliteInt.h"
#include <stdarg.h>
@@ -335,7 +335,7 @@ void *sqlite3ScratchMalloc(int n){
sqlite3StatusSet(SQLITE_STATUS_SCRATCH_SIZE, n);
sqlite3_mutex_leave(mem0.mutex);
p = (void*)&((char*)sqlite3GlobalConfig.pScratch)[i];
assert( ((p - (void*)0) & 7)==0 );
assert( (((u8*)p - (u8*)0) & 7)==0 );
}
}
#if SQLITE_THREADSAFE==0 && !defined(NDEBUG)