Bug 991153: Fix gcc warning about unsigned / signed comparison in StupidAllocator; r=mjrosenb
authorBenjamin Bouvier <benj@benj.me>
Tue, 15 Jul 2014 15:51:02 +0200
changeset 216086 f5aae6aa7bea46490fcc99dc25fbc469107c7084
parent 216085 a894aaa5b7bcb25e949cac6287722088eeeed39b
child 216087 bec2e24b4af86c93bf21c751297cb3341474d145
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmjrosenb
bugs991153
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 991153: Fix gcc warning about unsigned / signed comparison in StupidAllocator; r=mjrosenb
js/src/jit/StupidAllocator.cpp
--- a/js/src/jit/StupidAllocator.cpp
+++ b/js/src/jit/StupidAllocator.cpp
@@ -199,18 +199,18 @@ StupidAllocator::evictRegister(LInstruct
 {
     syncRegister(ins, index);
     registers[index].set(MISSING_ALLOCATION);
 }
 
 void
 StupidAllocator::evictAliasedRegister(LInstruction *ins, RegisterIndex index)
 {
-    for (int i = 0; i < registers[index].reg.numAliased(); i++) {
-        int aindex = registerIndex(registers[index].reg.aliased(i));
+    for (size_t i = 0; i < registers[index].reg.numAliased(); i++) {
+        uint32_t aindex = registerIndex(registers[index].reg.aliased(i));
         syncRegister(ins, aindex);
         registers[aindex].set(MISSING_ALLOCATION);
     }
 }
 
 void
 StupidAllocator::loadRegister(LInstruction *ins, uint32_t vreg, RegisterIndex index, LDefinition::Type type)
 {