From a8e2017020945c4529e6f22460eda62283ff3aa6 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Thu, 17 Jun 2010 01:04:03 -0500 Subject: [PATCH] vm: fix another compile warning on 32-bit Windows --- vm/slot_visitor.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 vm/slot_visitor.hpp diff --git a/vm/slot_visitor.hpp b/vm/slot_visitor.hpp old mode 100644 new mode 100755 index 4223f94a57..d4479ee102 --- a/vm/slot_visitor.hpp +++ b/vm/slot_visitor.hpp @@ -303,14 +303,14 @@ struct call_frame_slot_visitor { cell base = info->spill_slot_base(index); 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)) { #ifdef DEBUG_GC_MAPS std::cout << "visiting spill slot " << spill_slot << std::endl; #endif - visitor->visit_handle(&stack_pointer[spill_slot]); + visitor->visit_handle(stack_pointer + spill_slot); } } }