Title: [254396] trunk/Source/_javascript_Core
Revision
254396
Author
[email protected]
Date
2020-01-11 00:27:55 -0800 (Sat, 11 Jan 2020)

Log Message

Unreviewed, suppress warnings in GCC, part 2
https://bugs.webkit.org/show_bug.cgi?id=202832

* bytecode/ArithProfile.h:

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (254395 => 254396)


--- trunk/Source/_javascript_Core/ChangeLog	2020-01-11 08:18:23 UTC (rev 254395)
+++ trunk/Source/_javascript_Core/ChangeLog	2020-01-11 08:27:55 UTC (rev 254396)
@@ -1,5 +1,12 @@
 2020-01-11  Yusuke Suzuki  <[email protected]>
 
+        Unreviewed, suppress warnings in GCC, part 2
+        https://bugs.webkit.org/show_bug.cgi?id=202832
+
+        * bytecode/ArithProfile.h:
+
+2020-01-11  Yusuke Suzuki  <[email protected]>
+
         Unreviewed, suppress warnings in GCC
         https://bugs.webkit.org/show_bug.cgi?id=202832
 

Modified: trunk/Source/_javascript_Core/bytecode/ArithProfile.h (254395 => 254396)


--- trunk/Source/_javascript_Core/bytecode/ArithProfile.h	2020-01-11 08:18:23 UTC (rev 254395)
+++ trunk/Source/_javascript_Core/bytecode/ArithProfile.h	2020-01-11 08:27:55 UTC (rev 254396)
@@ -260,7 +260,7 @@
     static_assert((lhsObservedTypeShift + ObservedType::numBitsNeeded + 1) <= sizeof(BinaryArithProfileBase) * 8, "Should fit in a uint32_t.");
     static_assert(!(specialFastPathBit & ~clearLhsObservedTypeBitMask), "These bits should not intersect.");
     static_assert(specialFastPathBit & clearLhsObservedTypeBitMask, "These bits should intersect.");
-    static_assert(static_cast<unsigned>(specialFastPathBit) > static_cast<unsigned>(~clearLhsObservedTypeBitMask), "These bits should not intersect and specialFastPathBit should be a higher bit.");
+    static_assert(static_cast<unsigned>(specialFastPathBit) > static_cast<unsigned>(static_cast<BinaryArithProfileBase>(~clearLhsObservedTypeBitMask)), "These bits should not intersect and specialFastPathBit should be a higher bit.");
 
     BinaryArithProfile()
         : ArithProfile<BinaryArithProfileBase> ()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to