summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
diff options
context:
space:
mode:
authordearblue <[email protected]>2020-07-22 00:18:28 +0900
committerdearblue <[email protected]>2020-07-24 11:48:09 +0900
commitccd5f203bf1e7c54cb08fc9eecfe2772277b5a58 (patch)
tree5c7c761bf2d01788e8be38d03c86633ec296c8d0 /src/gc.c
parent5c2b11d21581cf472929b21f28f1a388a16f0865 (diff)
downloadmruby-ccd5f203bf1e7c54cb08fc9eecfe2772277b5a58.tar.gz
mruby-ccd5f203bf1e7c54cb08fc9eecfe2772277b5a58.zip
Improve prototype for `mrb_objspace_page_slot_size()`; ref #5032
If it qualify a return type that is not a pointer with `const`, the compiler ignores it.
Diffstat (limited to 'src/gc.c')
-rw-r--r--src/gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gc.c b/src/gc.c
index fd4fb2406..fa7f30889 100644
--- a/src/gc.c
+++ b/src/gc.c
@@ -1599,8 +1599,8 @@ mrb_objspace_each_objects(mrb_state *mrb, mrb_each_object_callback *callback, vo
}
}
-const mrb_int
-mrb_objspace_page_slot_size()
+mrb_int
+mrb_objspace_page_slot_size(void)
{
const mrb_int i = sizeof(RVALUE);
return i;