Closed Bug 915240 Opened 11 years ago Closed 4 months ago

tautological constant comparison in BaselineJIT.cpp (CanEnterBaselineJIT)

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: keeler, Unassigned)

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: general → nobody
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.