summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-22 00:32:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-02-22 00:45:05 +0900
commit8c5ca318cbe57269f144a4d0822c5283c1fd4e1a (patch)
tree8affdb4955703701e4b9ee9bf0ed6bc0c42da5a3 /proc.c
parent5cab86f3b0725457be3c50d3cab43b04bea53290 (diff)
`Proc` made by `Symbol#to_proc` should be a lambda [Bug #16260]
With refinements, too.
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index e0cba7109b..7fee55b098 100644
--- a/proc.c
+++ b/proc.c
@@ -739,7 +739,7 @@ rb_func_proc_new(rb_block_call_func_t func, VALUE val)
return cfunc_proc_new(rb_cProc, (VALUE)ifunc, 0);
}
-VALUE
+MJIT_FUNC_EXPORTED VALUE
rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_argc)
{
struct vm_ifunc *ifunc = rb_vm_ifunc_new(func, (void *)val, min_argc, max_argc);