bug 991153 follow up: fix a couple of incorrectly signed vars. (r=dholbert)
authorMarty Rosenberg <mrosenberg@mozilla.com>
Fri, 18 Jul 2014 02:25:29 -0400
changeset 216761 6f197c331bb14e76294a0669517c3e9528a527d9
parent 216760 f3cee88147f25039b33c24afec73d3ddb527239d
child 216762 cf53628c7ca8206edc03077f2f0a58b459a018fe
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)
reviewersdholbert
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 follow up: fix a couple of incorrectly signed vars. (r=dholbert)
js/src/jit/RegisterSets.h
--- a/js/src/jit/RegisterSets.h
+++ b/js/src/jit/RegisterSets.h
@@ -366,17 +366,17 @@ class TypedRegisterSet
         // When checking to see if a set has a register, we only want that exact
         // register, not worrying about aliasing.
         return !!(bits_ & (SetType(1) << reg.code()));
     }
     void addUnchecked(T reg) {
         bits_ |= (SetType(1) << reg.code());
     }
     void addAllAliasedUnchecked(T reg) {
-        for (int a = 0; a < reg.numAliased(); a++) {
+        for (uint32_t a = 0; a < reg.numAliased(); a++) {
             T tmp;
             reg.aliased(a, &tmp);
             bits_ |= (SetType(1) << tmp.code());
         }
     }
 
     void add(T reg) {
         // Make sure we don't add two overlapping registers.
@@ -412,17 +412,17 @@ class TypedRegisterSet
     void take(T reg) {
         JS_ASSERT(has(reg));
         takeUnchecked(reg);
     }
     void takeUnchecked(T reg) {
         bits_ &= ~(SetType(1) << reg.code());
     }
     void takeAllAliasedUnchecked(T reg) {
-        for (int a = 0; a < reg.numAliased(); a++) {
+        for (uint32_t a = 0; a < reg.numAliased(); a++) {
             T tmp;
             reg.aliased(a, &tmp);
             bits_ &= ~(SetType(1) << tmp.code());
         }
     }
     void take(ValueOperand value) {
 #if defined(JS_NUNBOX32)
         take(value.payloadReg());