Build fix for windows, wx and qt
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Feb 2008 02:15:36 +0000 (02:15 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 23 Feb 2008 02:15:36 +0000 (02:15 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@30509 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/html/CanvasPixelArray.h

index c16a983..1ee2421 100644 (file)
@@ -2,6 +2,15 @@
 
         Reviewed by NOBODY (build fix).
 
+        Build fix for windows, wx and qt
+
+        * html/CanvasPixelArray.h:
+        (WebCore::CanvasPixelArray::set):
+
+2008-02-22  Oliver Hunt  <oliver@apple.com>
+
+        Reviewed by NOBODY (build fix).
+
         Unbreak windows vcproj
 
         * WebCore.vcproj/WebCore.vcproj:
index 1f25e67..cfb6006 100644 (file)
@@ -29,6 +29,7 @@
 #ifndef CanvasPixelArray_h
 #define CanvasPixelArray_h
 
+#include <wtf/MathExtras.h>
 #include <wtf/PassRefPtr.h>
 #include <wtf/RefCounted.h>
 #include <wtf/Vector.h>
@@ -46,7 +47,7 @@ namespace WebCore {
                 value = 0;
             else if (value > 255)
                 value = 255;
-            m_data[index] = static_cast<unsigned char>(round(value));
+            m_data[index] = lround(value);
         }
 
         bool get(unsigned index, unsigned char& result) const