aboutsummaryrefslogtreecommitdiff
path: root/src/test_intarray.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-05-05 17:12:27 +0000
committerdrh <drh@noemail.net>2015-05-05 17:12:27 +0000
commitd689fd3a92428042a0784f7d8eb0fecda8921af8 (patch)
tree4d08293a03c01784935430d2c1caed449ad48bb3 /src/test_intarray.c
parentb9db90995254891621c116039cef50b5c3606db1 (diff)
parent0a96931b76e9b68e73d312bcc479d54b818a26cb (diff)
downloadsqlite-d689fd3a92428042a0784f7d8eb0fecda8921af8.tar.gz
sqlite-d689fd3a92428042a0784f7d8eb0fecda8921af8.zip
Merge all trunk enhancements and fixes into the sessions branch.
FossilOrigin-Name: de7083cfe2bb00b689bec6bcc75e994f564ceda6
Diffstat (limited to 'src/test_intarray.c')
-rw-r--r--src/test_intarray.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test_intarray.c b/src/test_intarray.c
index 7235fbced..70e34db3e 100644
--- a/src/test_intarray.c
+++ b/src/test_intarray.c
@@ -85,7 +85,7 @@ static int intarrayCreate(
char **pzErr /* Put error message text here */
){
int rc = SQLITE_NOMEM;
- intarray_vtab *pVtab = sqlite3_malloc(sizeof(intarray_vtab));
+ intarray_vtab *pVtab = sqlite3_malloc64(sizeof(intarray_vtab));
if( pVtab ){
memset(pVtab, 0, sizeof(intarray_vtab));
@@ -102,7 +102,7 @@ static int intarrayCreate(
static int intarrayOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor){
int rc = SQLITE_NOMEM;
intarray_cursor *pCur;
- pCur = sqlite3_malloc(sizeof(intarray_cursor));
+ pCur = sqlite3_malloc64(sizeof(intarray_cursor));
if( pCur ){
memset(pCur, 0, sizeof(intarray_cursor));
*ppCursor = (sqlite3_vtab_cursor *)pCur;
@@ -225,7 +225,7 @@ SQLITE_API int sqlite3_intarray_create(
#ifndef SQLITE_OMIT_VIRTUALTABLE
sqlite3_intarray *p;
- *ppReturn = p = sqlite3_malloc( sizeof(*p) );
+ *ppReturn = p = sqlite3_malloc64( sizeof(*p) );
if( p==0 ){
return SQLITE_NOMEM;
}
@@ -340,7 +340,7 @@ static int test_intarray_bind(
pArray = (sqlite3_intarray*)sqlite3TestTextToPtr(Tcl_GetString(objv[1]));
n = objc - 2;
#ifndef SQLITE_OMIT_VIRTUALTABLE
- a = sqlite3_malloc( sizeof(a[0])*n );
+ a = sqlite3_malloc64( sizeof(a[0])*n );
if( a==0 ){
Tcl_AppendResult(interp, "SQLITE_NOMEM", (char*)0);
return TCL_ERROR;