From 297b28d31e1145835a1f753f811c0bf1ebbd4f74 Mon Sep 17 00:00:00 2001 From: "gordon%netscape.com" Date: Wed, 23 Apr 2003 21:43:12 +0000 Subject: [PATCH] Fix AIX bustage. patch=jdunn, r=gordon, sr=darin, a=mkaply. git-svn-id: svn://10.0.0.236/trunk@141717 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/cache/src/nsCacheService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/netwerk/cache/src/nsCacheService.cpp b/mozilla/netwerk/cache/src/nsCacheService.cpp index 7fe80885420..58cca36f85d 100644 --- a/mozilla/netwerk/cache/src/nsCacheService.cpp +++ b/mozilla/netwerk/cache/src/nsCacheService.cpp @@ -1333,7 +1333,7 @@ nsCacheService::CacheMemoryAvailable() if (kbytes == 0) return 0; if (kbytes < 0) kbytes = LONG_MAX; // cap overflows - double x = log(kbytes)/log(2) - 14; + double x = log((double)kbytes)/log((double)2) - 14; if (x > 0) { capacity = (PRInt32)(x * x - x + 2.001); // add .001 for rounding capacity *= 1024;