Appease MSVC
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Mar 2013 22:17:28 +0000 (22:17 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Mar 2013 22:17:28 +0000 (22:17 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@145595 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp

index 3193905..28325cd 100644 (file)
@@ -1,5 +1,12 @@
 2013-03-12  Oliver Hunt  <oliver@apple.com>
 
+        Appease MSVC
+
+        * TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
+        (TestWebKitAPI):
+
+2013-03-12  Oliver Hunt  <oliver@apple.com>
+
         Add more Checked<> tests
         https://bugs.webkit.org/show_bug.cgi?id=112190
 
index 52c05f4..0a6d244 100644 (file)
@@ -70,7 +70,7 @@ namespace TestWebKitAPI {
         EXPECT_EQ(true, (value += coerceLiteral(1)).hasOverflowed()); \
         EXPECT_EQ(true, value.hasOverflowed()); \
         value = 10; \
-        type _value; \
+        type _value = 0; \
         EXPECT_EQ(true, CheckedState::DidNotOverflow == (value * Checked<type, RecordOverflow>(0)).safeGet(_value)); \
         EXPECT_EQ(true, 10 == _value); \
         _value = 0; \