aboutsummaryrefslogtreecommitdiff
path: root/src/test_bestindex.c
diff options
context:
space:
mode:
authordrh <>2023-01-21 00:19:29 +0000
committerdrh <>2023-01-21 00:19:29 +0000
commitc1b54fa225ce258a38f9cd56eabc45bc4eff4235 (patch)
tree157337f8b99925d5dd09c82be64962cc810865f5 /src/test_bestindex.c
parenta96cd076fef5f39061d036c15421771d23ee0743 (diff)
downloadsqlite-c1b54fa225ce258a38f9cd56eabc45bc4eff4235.tar.gz
sqlite-c1b54fa225ce258a38f9cd56eabc45bc4eff4235.zip
Fix harmless compiler warnings.
FossilOrigin-Name: ded60f5b3431283d70eb8c41761c0fa9727021e6309d0df0ae3fb0a5274c1299
Diffstat (limited to 'src/test_bestindex.c')
-rw-r--r--src/test_bestindex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test_bestindex.c b/src/test_bestindex.c
index 65f063e50..f6e0678ce 100644
--- a/src/test_bestindex.c
+++ b/src/test_bestindex.c
@@ -766,11 +766,11 @@ static int tclFindFunction(
if( Tcl_GetIntFromObj(interp, pObj, &iRet) ){
rc = SQLITE_ERROR;
}else if( iRet>0 ){
- int nName = strlen(zName);
- int nByte = nName + 1 + sizeof(TestFindFunction);
+ sqlite3_int64 nName = strlen(zName);
+ sqlite3_int64 nByte = nName + 1 + sizeof(TestFindFunction);
TestFindFunction *pNew = 0;
- pNew = (TestFindFunction*)sqlite3_malloc(nByte);
+ pNew = (TestFindFunction*)sqlite3_malloc64(nByte);
if( pNew==0 ){
iRet = 0;
}else{