1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-10-30 07:05:46 +03:00

Minor changes to get memsys5 compiling and its tests passing. Ticket #3495. (CVS 5901)

FossilOrigin-Name: 96453ca16e90bc0c0cbfb75b3e39899f56d6ea66
This commit is contained in:
danielk1977
2008-11-13 16:21:50 +00:00
parent d17e71c95c
commit ac8d7b35fa
5 changed files with 19 additions and 14 deletions

View File

@@ -23,7 +23,7 @@
** This version of the memory allocation subsystem is included
** in the build only if SQLITE_ENABLE_MEMSYS5 is defined.
**
** $Id: mem5.c,v 1.15 2008/10/28 18:58:20 drh Exp $
** $Id: mem5.c,v 1.16 2008/11/13 16:21:50 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -213,7 +213,6 @@ static void *memsys5MallocUnsafe(int nByte){
}
/* Round nByte up to the next valid power of two */
if( nByte>POW2_MAX ) return 0;
for(iFullSz=mem5.nAtom, iLogsize=0; iFullSz<nByte; iFullSz *= 2, iLogsize++){}
/* Make sure mem5.aiFreelist[iLogsize] contains at least one free