aboutsummaryrefslogtreecommitdiff
path: root/src/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/malloc.c')
-rw-r--r--src/malloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/malloc.c b/src/malloc.c
index d23d91db5..2c7897949 100644
--- a/src/malloc.c
+++ b/src/malloc.c
@@ -142,7 +142,7 @@ sqlite3_int64 sqlite3_soft_heap_limit64(sqlite3_int64 n){
sqlite3MemoryAlarm(0, 0, 0);
}
excess = sqlite3_memory_used() - n;
- if( excess>0 ) sqlite3_release_memory(excess & 0x7fffffff);
+ if( excess>0 ) sqlite3_release_memory((int)(excess & 0x7fffffff));
return priorLimit;
}
void sqlite3_soft_heap_limit(int n){