Unreviewed, fix 32-bit build.
authorsaid@apple.com <said@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Sep 2016 16:18:25 +0000 (16:18 +0000)
committersaid@apple.com <said@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 30 Sep 2016 16:18:25 +0000 (16:18 +0000)
* loader/cache/CachedImage.cpp:
(WebCore::CachedImage::decodedSizeChanged):

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

Source/WebCore/ChangeLog
Source/WebCore/loader/cache/CachedImage.cpp

index d5f833c..b0c60f4 100644 (file)
@@ -1,3 +1,10 @@
+2016-09-30  Said Abou-Hallawa  <sabouhallawa@apple.com>
+
+        Unreviewed, fix 32-bit build.
+
+        * loader/cache/CachedImage.cpp:
+        (WebCore::CachedImage::decodedSizeChanged):
+
 2016-09-30  Youenn Fablet  <youenn@apple.com>
 
         FetchBody should use UTF8Encoding to encode text data
index b80b785..2f36130 100644 (file)
@@ -456,7 +456,7 @@ void CachedImage::decodedSizeChanged(const Image* image, long long delta)
         return;
 
     ASSERT(delta >= 0 || decodedSize() + delta >= 0);
-    setDecodedSize(decodedSize() + delta);
+    setDecodedSize(static_cast<unsigned>(decodedSize() + delta));
 }
 
 void CachedImage::didDraw(const Image* image)