From 5f1eb0dc79bfa6a111c85831636f8d4473f1414c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 26 Jul 2024 11:24:53 +0900 Subject: [PATCH] Fix wrong conversion in disasm dump `LINK_ELEMENT::type` is an `enum` not a `VALUE`, `FIX2LONG` doesn't make sense. --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.c b/compile.c index f98e3a00ef..e1063a5ac3 100644 --- a/compile.c +++ b/compile.c @@ -11326,7 +11326,7 @@ dump_disasm_list_with_cursor(const LINK_ELEMENT *link, const LINK_ELEMENT *curr, } default: /* ignore */ - rb_raise(rb_eSyntaxError, "dump_disasm_list error: %ld\n", FIX2LONG(link->type)); + rb_raise(rb_eSyntaxError, "dump_disasm_list error: %d\n", (int)link->type); } link = link->next; }