From 35e9b5348d91eff13d2bdc487003f46a19586d42 Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Fri, 24 Mar 2023 12:36:06 -0400 Subject: YJIT: Constify EC to avoid an `as` pointer cast (#7591) --- yjit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yjit.c') diff --git a/yjit.c b/yjit.c index d0d8ae463a..97ad722270 100644 --- a/yjit.c +++ b/yjit.c @@ -335,7 +335,7 @@ rb_yjit_reserve_addr_space(uint32_t mem_size) // Is anyone listening for :c_call and :c_return event currently? bool -rb_c_method_tracing_currently_enabled(rb_execution_context_t *ec) +rb_c_method_tracing_currently_enabled(const rb_execution_context_t *ec) { rb_event_flag_t tracing_events; if (rb_multi_ractor_p()) { -- cgit v1.2.1