Fixed the each object callback to be more consistent with other callbacks.

This commit is contained in:
Ryan Scott
2013-05-18 10:55:41 +10:00
parent 391807b73c
commit 4acfadfee1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1153,7 +1153,7 @@ mrb_objspace_each_objects(mrb_state *mrb, each_object_callback* callback, void *
p = page->objects;
pend = p + MRB_HEAP_PAGE_SIZE;
for (;p < pend; p++) {
callback(mrb, &p->as.basic, data);
(*callback)(mrb, &p->as.basic, data);
}
page = page->next;