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•2 years ago
|
||
This is just a compiler warning in 64 bit builds, so there's no user impact.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Comment 3•2 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•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Pushed by nlayzell@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/42a0797b0370 Use CheckedInt to avoid unnecessary warning in 64-bit builds, r=emilio
Comment 6•2 years ago
|
||
bugherder |
Description
•