aboutsummaryrefslogtreecommitdiff
path: root/src/pcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcache.c')
-rw-r--r--src/pcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcache.c b/src/pcache.c
index 0c3e9ee0a..482a188be 100644
--- a/src/pcache.c
+++ b/src/pcache.c
@@ -205,7 +205,7 @@ static int numberOfCachePages(PCache *p){
if( p->szCache>=0 ){
return p->szCache;
}else{
- return (-1024*p->szCache)/(p->szPage+p->szExtra);
+ return (int)((-1024*(i64)p->szCache)/(p->szPage+p->szExtra));
}
}