Title: [144728] trunk/Source/WebCore
Revision
144728
Author
[email protected]
Date
2013-03-04 23:20:26 -0800 (Mon, 04 Mar 2013)

Log Message

Unreviewed Windows build fix attempt.

floor method is ambigious so explicitly specify the type.

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::validateCompressedTexFuncData):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (144727 => 144728)


--- trunk/Source/WebCore/ChangeLog	2013-03-05 07:13:46 UTC (rev 144727)
+++ trunk/Source/WebCore/ChangeLog	2013-03-05 07:20:26 UTC (rev 144728)
@@ -1,3 +1,12 @@
+2013-03-04  Kinuko Yasuda  <[email protected]>
+
+        Unreviewed Windows build fix attempt.
+
+        floor method is ambigious so explicitly specify the type.
+
+        * html/canvas/WebGLRenderingContext.cpp:
+        (WebCore::WebGLRenderingContext::validateCompressedTexFuncData):
+
 2013-03-04  Chris Fleizach  <[email protected]>
 
         AX: cellForColumnAndRow fails for tables with hidden table cells

Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp (144727 => 144728)


--- trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp	2013-03-05 07:13:46 UTC (rev 144727)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContext.cpp	2013-03-05 07:20:26 UTC (rev 144728)
@@ -5345,13 +5345,13 @@
         break;
     case Extensions3D::COMPRESSED_ATC_RGB_AMD:
         {
-            bytesRequired = floor((width + 3) / 4) * floor((height + 3) / 4) * 8;
+            bytesRequired = floor(static_cast<double>((width + 3) / 4)) * floor(static_cast<double>((height + 3) / 4)) * 8;
         }
         break;
     case Extensions3D::COMPRESSED_ATC_RGBA_EXPLICIT_ALPHA_AMD:
     case Extensions3D::COMPRESSED_ATC_RGBA_INTERPOLATED_ALPHA_AMD:
         {
-            bytesRequired = floor((width + 3) / 4) * floor((height + 3) / 4) * 16;
+            bytesRequired = floor(static_cast<double>((width + 3) / 4)) * floor(static_cast<double>((height + 3) / 4)) * 16;
         }
         break;
     default:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to