Always false comparison in StreamLoader::OnStartRequest()
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
People
(Reporter: mccr8, Assigned: nika)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
[...]/layout/style/StreamLoader.cpp:46:28: warning: result of comparison 'uint64_t' (aka 'unsigned long long') > 18446744073709551615 is always false [-Wtautological-type-limit-compare]
I noticed this warning passing by when I did a local build. This line of code was changed in bug 1741665. I think it is a regression because that bug changed nsACString::size_type
from uint32_t to size_t.
The actual check is: uint64_t(length) > std::numeric_limits<nsACString::size_type>::max()
.
I guess this check isn't trivial on 32-bit builds...
Reporter | ||
Comment 1•3 years ago
|
||
This is just a compiler warning in 64 bit builds, so there's no user impact.
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 3•3 years ago
|
||
:nika, since you are the author of the regressor, bug 1741665, could you take a look?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 4•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 6•3 years ago
|
||
bugherder |
Description
•