summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRyan Scott <[email protected]>2013-05-17 08:02:24 +1000
committerRyan Scott <[email protected]>2013-05-17 08:02:24 +1000
commit40d63f7740e4b020a2126ddb386760c6fd51c999 (patch)
treec55420fb15a817eb84c3c21940e550f3403da287 /src
parentda6b61db796a27c7e2784247e94293d86ac7563c (diff)
downloadmruby-40d63f7740e4b020a2126ddb386760c6fd51c999.tar.gz
mruby-40d63f7740e4b020a2126ddb386760c6fd51c999.zip
Changed the each_object callback so that a pointer is passed for the object, instead of the struct.
Diffstat (limited to 'src')
-rw-r--r--src/gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gc.c b/src/gc.c
index f824ee9d4..9dcc3f4b2 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -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;