Try to fix watchOS build.
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Mar 2019 16:50:25 +0000 (16:50 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Mar 2019 16:50:25 +0000 (16:50 +0000)
* platform/graphics/Region.h:
(WebCore::Region::Span::decode):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/Region.h

index fb3d092..9bee757 100644 (file)
@@ -1,3 +1,10 @@
+2019-03-15  Antti Koivisto  <antti@apple.com>
+
+        Try to fix watchOS build.
+
+        * platform/graphics/Region.h:
+        (WebCore::Region::Span::decode):
+
 2019-03-15  Simon Fraser  <simon.fraser@apple.com>
 
         [Async overflow Scrolling] Update positioned node layers when overflows are scrolled
index 382a331..6292187 100644 (file)
@@ -227,7 +227,7 @@ Optional<Region::Span> Region::Span::decode(Decoder& decoder)
     if (!segmentIndex)
         return { };
 
-    return { { *y, *segmentIndex } };
+    return { { *y, static_cast<size_t>(*segmentIndex) } };
 }
 
 template<class Encoder>