Skip to content

Commit 801cdfe

Browse files
committed
Fix wrong declaration of rb_optimized_call
`recv` is used as the input argument to `GetProcPtr`, which is a `VALUE`. Fix up ruby#6691.
1 parent 2428507 commit 801cdfe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

jit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ rb_jit_get_proc_ptr(VALUE procv)
192192
}
193193

194194
VALUE
195-
rb_optimized_call(VALUE *recv, rb_execution_context_t *ec, int argc, VALUE *argv, int kw_splat, VALUE block_handler)
195+
rb_optimized_call(VALUE recv, rb_execution_context_t *ec, int argc, VALUE *argv, int kw_splat, VALUE block_handler)
196196
{
197197
rb_proc_t *proc;
198198
GetProcPtr(recv, proc);

yjit/src/cruby_bindings.inc.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

zjit/src/cruby_bindings.inc.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)