Build fix.
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Sep 2007 01:17:10 +0000 (01:17 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Sep 2007 01:17:10 +0000 (01:17 +0000)
        * WebView/WebView.mm:
        (+[WebView _setCacheModel:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25431 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKit/ChangeLog
WebKit/WebView/WebView.mm

index 4f394719698e9767644a5e3bbc6cee3b470e32ac..249d3cc919a94df06ef3ac4bae99e4dd56afc7c0 100644 (file)
@@ -1,3 +1,10 @@
+2007-09-07  Geoffrey Garen  <ggaren@apple.com>
+
+        Build fix.
+
+        * WebView/WebView.mm:
+        (+[WebView _setCacheModel:]):
+
 2007-09-05  Geoffrey Garen  <ggaren@apple.com>
 
         Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
index 17e6ff261a3ebc0bd6d3f556da8a2eda32bdd466..279355d314d1d7a78c8cf9e41315b7d1c4ba6114 100644 (file)
@@ -3661,8 +3661,8 @@ static WebFrameView *containingFrameView(NSView *view)
         else if (memSize >= 256)
             cacheTotalCapacity = 16 * 1024 * 1024; 
 
-        cacheMinDeadCapacity = cacheTotalCapacity * 0.125f;
-        cacheMaxDeadCapacity = cacheTotalCapacity * 0.25f;
+        cacheMinDeadCapacity = static_cast<unsigned>(cacheTotalCapacity * 0.125f);
+        cacheMaxDeadCapacity = static_cast<unsigned>(cacheTotalCapacity * 0.25f);
 
         // Foundation memory cache capacity (in bytes)
         if (memSize >= 2048)
@@ -3723,8 +3723,8 @@ static WebFrameView *containingFrameView(NSView *view)
         else if (memSize >= 256)
             cacheTotalCapacity = 32 * 1024 * 1024; 
 
-        cacheMinDeadCapacity = cacheTotalCapacity * 0.25f;
-        cacheMaxDeadCapacity = cacheTotalCapacity * 0.50f;
+        cacheMinDeadCapacity = static_cast<unsigned>(cacheTotalCapacity * 0.25f);
+        cacheMaxDeadCapacity = static_cast<unsigned>(cacheTotalCapacity * 0.50f);
 
         // This code is here to avoid a PLT regression. We can remove it if we
         // can prove that the overall system gain would justify the regression.