diff options
author | danielk1977 <danielk1977@noemail.net> | 2008-06-23 14:40:18 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2008-06-23 14:40:18 +0000 |
commit | 834a5aab16f3d767f0ac8ca59fcf4a462eef3c9b (patch) | |
tree | 563b1be1f4b88f9875feb611b52964a732af62ff /src | |
parent | ca026796352ceef0925e3f52f13707c3112dfcd3 (diff) | |
download | sqlite-834a5aab16f3d767f0ac8ca59fcf4a462eef3c9b.tar.gz sqlite-834a5aab16f3d767f0ac8ca59fcf4a462eef3c9b.zip |
Remove a non-ansi construct from mem1.c - an assert() statement before the variable declarations in a function. (CVS 5280)
FossilOrigin-Name: 1de98da6b4c2039e5dc594cc9bfc7d49ae36697c
Diffstat (limited to 'src')
-rw-r--r-- | src/mem1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem1.c b/src/mem1.c index e42322538..8cd71b875 100644 --- a/src/mem1.c +++ b/src/mem1.c @@ -17,7 +17,7 @@ ** This file contains implementations of the low-level memory allocation ** routines specified in the sqlite3_mem_methods object. ** -** $Id: mem1.c,v 1.21 2008/06/17 15:12:01 drh Exp $ +** $Id: mem1.c,v 1.22 2008/06/23 14:40:18 danielk1977 Exp $ */ #include "sqliteInt.h" @@ -54,8 +54,8 @@ static void *sqlite3MemMalloc(int nByte){ ** by higher-level routines. */ static void sqlite3MemFree(void *pPrior){ - assert( pPrior!=0 ); sqlite3_int64 *p = (sqlite3_int64*)pPrior; + assert( pPrior!=0 ); p--; free(p); } |