Title: [94460] trunk/Source/_javascript_Core
Revision
94460
Author
[email protected]
Date
2011-09-02 16:25:15 -0700 (Fri, 02 Sep 2011)

Log Message

Compile fix for mac build.

* wtf/CheckedArithmetic.h:
(WTF::operator+):
(WTF::operator-):
(WTF::operator*):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (94459 => 94460)


--- trunk/Source/_javascript_Core/ChangeLog	2011-09-02 23:07:29 UTC (rev 94459)
+++ trunk/Source/_javascript_Core/ChangeLog	2011-09-02 23:25:15 UTC (rev 94460)
@@ -1,3 +1,12 @@
+2011-09-02  James Robinson  <[email protected]>
+
+        Compile fix for mac build.
+
+        * wtf/CheckedArithmetic.h:
+        (WTF::operator+):
+        (WTF::operator-):
+        (WTF::operator*):
+
 2011-08-30  Matthew Delaney  <[email protected]>
 
         Read out of bounds in sUnpremultiplyData_RGBA8888 / ImageBufferData::getData

Modified: trunk/Source/_javascript_Core/wtf/CheckedArithmetic.h (94459 => 94460)


--- trunk/Source/_javascript_Core/wtf/CheckedArithmetic.h	2011-09-02 23:07:29 UTC (rev 94459)
+++ trunk/Source/_javascript_Core/wtf/CheckedArithmetic.h	2011-09-02 23:25:15 UTC (rev 94460)
@@ -623,7 +623,7 @@
     U x = 0;
     V y = 0;
     bool overflowed = lhs.safeGet(x) || rhs.safeGet(y);
-    typename Result<U, V>::ResultType result;
+    typename Result<U, V>::ResultType result = 0;
     overflowed |= !safeAdd(x, y, result);
     if (overflowed)
         return ResultOverflowed;
@@ -635,7 +635,7 @@
     U x = 0;
     V y = 0;
     bool overflowed = lhs.safeGet(x) || rhs.safeGet(y);
-    typename Result<U, V>::ResultType result;
+    typename Result<U, V>::ResultType result = 0;
     overflowed |= !safeSub(x, y, result);
     if (overflowed)
         return ResultOverflowed;
@@ -647,7 +647,7 @@
     U x = 0;
     V y = 0;
     bool overflowed = lhs.safeGet(x) || rhs.safeGet(y);
-    typename Result<U, V>::ResultType result;
+    typename Result<U, V>::ResultType result = 0;
     overflowed |= !safeMultiply(x, y, result);
     if (overflowed)
         return ResultOverflowed;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to