diff options
| author | Ryan Scott <[email protected]> | 2013-05-17 08:02:24 +1000 |
|---|---|---|
| committer | Ryan Scott <[email protected]> | 2013-05-17 08:02:24 +1000 |
| commit | 40d63f7740e4b020a2126ddb386760c6fd51c999 (patch) | |
| tree | c55420fb15a817eb84c3c21940e550f3403da287 /src | |
| parent | da6b61db796a27c7e2784247e94293d86ac7563c (diff) | |
| download | mruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
