Fix MSVC warning
authorDavid Mandelin <dmandelin@mozilla.com>
Mon, 16 May 2011 16:16:55 -0700
changeset 69897 f687d013f0c69281de55553de829a34e556bb89a
parent 69896 b47fcf4c93df62ca58e82904a57e2f23f363ef6f
child 69898 7fe5fb2450f46b934386a6ce6f79127bd55788f3
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
milestone6.0a1
Fix MSVC warning
js/src/jsgc.cpp
--- a/js/src/jsgc.cpp
+++ b/js/src/jsgc.cpp
@@ -394,18 +394,18 @@ Chunk::releaseArena(ArenaHeader *aheader
     JS_ASSERT(size_t(rt->gcBytes) >= ArenaSize);
     JS_ASSERT(size_t(comp->gcBytes) >= ArenaSize);
 #ifdef JS_THREADSAFE
     if (rt->gcHelperThread.sweeping) {
         rt->reduceGCTriggerBytes(GC_HEAP_GROWTH_FACTOR * ArenaSize);
         comp->reduceGCTriggerBytes(GC_HEAP_GROWTH_FACTOR * ArenaSize);
     }
 #endif
-    JS_ATOMIC_ADD(&rt->gcBytes, -ArenaSize);
-    JS_ATOMIC_ADD(&comp->gcBytes, -ArenaSize);
+    JS_ATOMIC_ADD(&rt->gcBytes, -int32(ArenaSize));
+    JS_ATOMIC_ADD(&comp->gcBytes, -int32(ArenaSize));
     info.emptyArenaLists.insert(aheader);
     aheader->compartment = NULL;
     ++info.numFree;
     if (unused())
         info.age = 0;
 }
 
 JSRuntime *