summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-08-28 17:48:48 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-08-29 18:34:09 +0900
commit7b6fde4258e700c0e0292bb091aa84a5e473342e (patch)
treea9ac636ca63307dd4507e99814ae511daa96e34a /marshal.c
parent9ef51b0b89a10c8c401cb9f2337e47a25be72cbe (diff)
drop-in type check for rb_define_module_function
We can check the function pointer passed to rb_define_module_function like how we do so in rb_define_method. The difference is that this changeset reveales lots of atiry mismatches.
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/marshal.c b/marshal.c
index b21db2653f..71480bf5b8 100644
--- a/marshal.c
+++ b/marshal.c
@@ -1047,7 +1047,7 @@ io_needed(void)
* * objects which define singleton methods
*/
static VALUE
-marshal_dump(int argc, VALUE *argv)
+marshal_dump(int argc, VALUE *argv, VALUE _)
{
VALUE obj, port, a1, a2;
int limit = -1;
@@ -2104,7 +2104,7 @@ clear_load_arg(struct load_arg *arg)
* Please see the overview for further details.
*/
static VALUE
-marshal_load(int argc, VALUE *argv)
+marshal_load(int argc, VALUE *argv, VALUE _)
{
VALUE port, proc;