ruby-deepclone icon indicating copy to clipboard operation
ruby-deepclone copied to clipboard

The signature of deep_clone is incorrect

Open eregon opened this issue 5 years ago • 0 comments

https://github.com/gmodarelli/ruby-deepclone/blob/465162df3f89c816badec1a1a473e5b2da4c8ec8/ext/deep_clone/deep_clone.c#L34 https://github.com/gmodarelli/ruby-deepclone/blob/465162df3f89c816badec1a1a473e5b2da4c8ec8/ext/deep_clone/deep_clone.c#L176

So the signature of the function deep_clone doesn't match the arity given to rb_define_module_function. It should be VALUE deep_clone(VALUE self, VALUE arg).

From https://github.com/oracle/truffleruby/issues/2073

eregon avatar Aug 14 '20 09:08 eregon