Title: [227105] trunk/Source/_javascript_Core
- Revision
- 227105
- Author
- [email protected]
- Date
- 2018-01-17 18:45:46 -0800 (Wed, 17 Jan 2018)
Log Message
Unreviewed, suppress warnings on GCC
Since `length` and `p` are always positive or zero,
static_cast<unsigned>() does what we want.
* runtime/JSBigInt.cpp:
(JSC::JSBigInt::parseInt):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (227104 => 227105)
--- trunk/Source/_javascript_Core/ChangeLog 2018-01-18 01:58:25 UTC (rev 227104)
+++ trunk/Source/_javascript_Core/ChangeLog 2018-01-18 02:45:46 UTC (rev 227105)
@@ -1,3 +1,13 @@
+2018-01-17 Yusuke Suzuki <[email protected]>
+
+ Unreviewed, suppress warnings on GCC
+
+ Since `length` and `p` are always positive or zero,
+ static_cast<unsigned>() does what we want.
+
+ * runtime/JSBigInt.cpp:
+ (JSC::JSBigInt::parseInt):
+
2018-01-17 Saam Barati <[email protected]>
Disable Atomics when SharedArrayBuffer isn’t enabled
Modified: trunk/Source/_javascript_Core/runtime/JSBigInt.cpp (227104 => 227105)
--- trunk/Source/_javascript_Core/runtime/JSBigInt.cpp 2018-01-18 01:58:25 UTC (rev 227104)
+++ trunk/Source/_javascript_Core/runtime/JSBigInt.cpp 2018-01-18 02:45:46 UTC (rev 227105)
@@ -728,7 +728,7 @@
++p;
// Check Radix from frist characters
- if (p + 1 < length && data[p] == '0') {
+ if (static_cast<unsigned>(p) + 1 < static_cast<unsigned>(length) && data[p] == '0') {
if (isASCIIAlphaCaselessEqual(data[p + 1], 'b'))
return parseInt(state, vm, data, length, p + 2, 2, false);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes