Title: [291363] trunk/Tools
- Revision
- 291363
- Author
- basuke.suz...@sony.com
- Date
- 2022-03-16 13:50:30 -0700 (Wed, 16 Mar 2022)
Log Message
Suppress warnings for implicit conversion from unsigned long to double
https://bugs.webkit.org/show_bug.cgi?id=237899
<rdar://problem/90364907>
Reviewed by Darin Adler.
Add static_cast for approx casting to double.
* TestWebKitAPI/Tests/WTF/Int128.cpp:
(TestWebKitAPI::TEST):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (291362 => 291363)
--- trunk/Tools/ChangeLog 2022-03-16 20:45:42 UTC (rev 291362)
+++ trunk/Tools/ChangeLog 2022-03-16 20:50:30 UTC (rev 291363)
@@ -1,3 +1,16 @@
+2022-03-16 Basuke Suzuki <basuke.suz...@sony.com>
+
+ Suppress warnings for implicit conversion from unsigned long to double
+ https://bugs.webkit.org/show_bug.cgi?id=237899
+ <rdar://problem/90364907>
+
+ Reviewed by Darin Adler.
+
+ Add static_cast for approx casting to double.
+
+ * TestWebKitAPI/Tests/WTF/Int128.cpp:
+ (TestWebKitAPI::TEST):
+
2022-03-15 Jonathan Bedard <jbed...@apple.com>
[Merge-Queue] Rename patch_reviewer
Modified: trunk/Tools/TestWebKitAPI/Tests/WTF/Int128.cpp (291362 => 291363)
--- trunk/Tools/TestWebKitAPI/Tests/WTF/Int128.cpp 2022-03-16 20:45:42 UTC (rev 291362)
+++ trunk/Tools/TestWebKitAPI/Tests/WTF/Int128.cpp 2022-03-16 20:50:30 UTC (rev 291363)
@@ -251,7 +251,7 @@
EXPECT_EQ(from_precise_double, from_precise_ints);
EXPECT_DOUBLE_EQ(static_cast<double>(from_precise_ints), precise_double);
- double approx_double = 0xffffeeeeddddcccc * std::pow(2.0, 64.0) + 0xbbbbaaaa99998888;
+ double approx_double = static_cast<double>(0xffffeeeeddddcccc) * std::pow(2.0, 64.0) + static_cast<double>(0xbbbbaaaa99998888);
WTF::UInt128Impl from_approx_double(approx_double);
EXPECT_DOUBLE_EQ(static_cast<double>(from_approx_double), approx_double);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes