Fixed signed/unsigned compare warning
authorDavid Mandelin <dmandelin@mozilla.com>
Tue, 03 Feb 2009 10:59:24 -0800
changeset 24608 8d1c9cd07f916f3e290a6630a350947f3ec5a1bf
parent 24607 1a1fbea3c70fcb704c28802001a927255de45eee
child 24609 bab1a858464d75dd2faf8b8fc6231d36e4d2469e
push id5132
push userrsayre@mozilla.com
push dateWed, 04 Feb 2009 20:48:09 +0000
treeherdermozilla-central@76ca30e94e5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.2a1pre
Fixed signed/unsigned compare warning
js/src/jstracer.cpp
--- a/js/src/jstracer.cpp
+++ b/js/src/jstracer.cpp
@@ -3004,17 +3004,17 @@ js_CheckGlobalObjectShape(JSContext* cx,
         return true;
     }
 
     /* No recorder, search for a tracked global-state (or allocate one). */
     for (size_t i = 0; i < MONITOR_N_GLOBAL_STATES; ++i) {
 
         GlobalState &state = tm->globalStates[i];
 
-        if (state.globalShape == -1) {
+        if (state.globalShape == (uint32) -1) {
             state.globalShape = globalShape;
             JS_ASSERT(state.globalSlots);
             JS_ASSERT(state.globalSlots->length() == 0);
         }
 
         if (tm->globalStates[i].globalShape == globalShape) {
             if (shape)
                 *shape = globalShape;