aboutsummaryrefslogtreecommitdiffstats
path: root/yjit_codegen.c
diff options
context:
space:
mode:
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r--yjit_codegen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c
index aef5c0790d..cd46685b57 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -3212,9 +3212,9 @@ jit_thread_s_current(jitstate_t *jit, ctx_t *ctx, const struct rb_callinfo *ci,
static method_codegen_t
lookup_cfunc_codegen(const rb_method_definition_t *def)
{
- method_codegen_t gen_fn;
- if (st_lookup(yjit_method_codegen_table, def->method_serial, (st_data_t *)&gen_fn)) {
- return gen_fn;
+ st_data_t gen_fn;
+ if (st_lookup(yjit_method_codegen_table, def->method_serial, &gen_fn)) {
+ return (method_codegen_t)gen_fn;
}
return NULL;
}