Fix MSVC warning

This commit is contained in:
David Mandelin 2011-05-16 16:16:55 -07:00
parent b7c706d561
commit 5ad1963088

View File

@ -399,8 +399,8 @@ Chunk::releaseArena(ArenaHeader *aheader)
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;