vm: fix another compile warning on 32-bit Windows

db4
Slava Pestov 2010-06-17 01:04:03 -05:00
parent 4aa644a256
commit 174463e156
1 changed files with 2 additions and 2 deletions

4
vm/slot_visitor.hpp Normal file → Executable file
View File

@ -303,14 +303,14 @@ struct call_frame_slot_visitor {
cell base = info->spill_slot_base(index); cell base = info->spill_slot_base(index);
cell *stack_pointer = (cell *)(parent->frame_successor(frame) + 1); cell *stack_pointer = (cell *)(parent->frame_successor(frame) + 1);
for(cell spill_slot = 0; spill_slot < info->gc_root_count; spill_slot++) for(int spill_slot = 0; spill_slot < info->gc_root_count; spill_slot++)
{ {
if(bitmap_p(bitmap,base + spill_slot)) if(bitmap_p(bitmap,base + spill_slot))
{ {
#ifdef DEBUG_GC_MAPS #ifdef DEBUG_GC_MAPS
std::cout << "visiting spill slot " << spill_slot << std::endl; std::cout << "visiting spill slot " << spill_slot << std::endl;
#endif #endif
visitor->visit_handle(&stack_pointer[spill_slot]); visitor->visit_handle(stack_pointer + spill_slot);
} }
} }
} }