tautological constant comparison in BaselineJIT.cpp (CanEnterBaselineJIT)

NEW
Unassigned

Status

()

Core
JavaScript Engine
5 years ago
4 years ago

People

(Reporter: keeler, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

3:16.46 Warning: -Wtautological-constant-out-of-range-compare in /home/keeler/mozilla-sandbox/js/src/jit/BaselineJIT.cpp: comparison of constant 1048575 with expression of type 'uint16_t' (aka 'unsigned short') is always false
3:16.46 /home/keeler/mozilla-sandbox/js/src/jit/BaselineJIT.cpp:256:24: warning: comparison of constant 1048575 with expression of type 'uint16_t' (aka 'unsigned short') is always false [-Wtautological-constant-out-of-range-compare]
3:16.46     if (script->nslots > BaselineScript::MAX_JSSCRIPT_SLOTS)
3:16.46         ~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(Assignee)

Updated

4 years ago
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.