Closed Bug 520470 Opened 16 years ago Closed 16 years ago

64-bit warnings in jsarray.cpp

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: sayrer, Unassigned)

Details

/home/sayrer/dev/mozilla-central/js/src/jsarray.cpp: In function ‘JSBool ResizeSlots(JSContext*, JSObject*, uint32, uint32)’: /home/sayrer/dev/mozilla-central/js/src/jsarray.cpp:324: warning: comparison is always false due to limited range of data type /home/sayrer/dev/mozilla-central/js/src/jsarray.cpp: In function ‘JSBool InitArrayElements(JSContext*, JSObject*, jsuint, jsuint, jsval*, TargetElementsType, SourceVectorType)’: /home/sayrer/dev/mozilla-central/js/src/jsarray.cpp:1669: warning: comparison is always true due to limited range of data type jsatom.cpp
What version of gcc? SpiderMonkey is warning-free for me: [jwalden@the-great-waldo-search src]$ c++ --version c++ (GCC) 4.4.1 20090725 (Red Hat 4.4.1-2) Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Hardware: x86 → x86_64
sayrer@usun:~/dev/mozilla-central$ c++ --version c++ (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.