[Webkit-unassigned] [Bug 214298] New: [JSC] Remove compiler warning in JSBigInt
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 14 02:27:59 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=214298
Bug ID: 214298
Summary: [JSC] Remove compiler warning in JSBigInt
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: xan.lopez at gmail.com
We are ASSERTing >= 0 with an unsigned int, which is redundant. This has been around for a while.
[120/188] Building CXX object Source/JavaScriptCore/CMakeFiles/JavaScriptCore...DerivedSources/JavaScriptCore/unified-sources/UnifiedSource-f2e18ffc-17.cpp.o
In file included from DerivedSources/ForwardingHeaders/wtf/StdLibExtras.h:32,
from DerivedSources/ForwardingHeaders/wtf/FastMalloc.h:26,
from ../../Source/JavaScriptCore/config.h:38,
from ../../Source/JavaScriptCore/runtime/JSAsyncGenerator.cpp:26,
from DerivedSources/JavaScriptCore/unified-sources/UnifiedSource-f2e18ffc-17.cpp:1:
../../Source/JavaScriptCore/runtime/JSBigInt.cpp: In instantiation of ‘static JSC::JSValue JSC::JSBigInt::parseInt(JSC::JSGlobalObject*, JSC::VM&, CharType*, unsigned int, unsigned int, unsigned int, JSC::JSBigInt::ErrorParseMode, JSC::JSBigInt::ParseIntSign, JSC::JSBigInt::ParseIntMode) [with CharType = const unsigned char]’:
../../Source/JavaScriptCore/runtime/JSBigInt.cpp:329:145: required from here
../../Source/JavaScriptCore/runtime/JSBigInt.cpp:2422:19: warning: comparison of unsigned expression in ‘>= 0’ is always true [-Wtype-limits]
2422 | ASSERT(length >= 0);
DerivedSources/ForwardingHeaders/wtf/Assertions.h:346:11: note: in definition of macro ‘ASSERT’
346 | if (!(assertion)) { \
| ^~~~~~~~~
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200714/dcbc9ba9/attachment.htm>
More information about the webkit-unassigned
mailing list