vm: fix crash if all-instances primitive triggers a GC

db4
Slava Pestov 2009-11-06 01:41:11 -06:00
parent f0401acc97
commit c512013220
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ cell factor_vm::instances(cell type)
each_object(accum);
cell object_count = accum.objects.size();
data_roots.push_back(accum.objects[0]);
data_roots.push_back((cell)&accum.objects[0]);
data_roots.push_back(object_count);
array *objects = allot_array(object_count,false_object);