summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-07-26 11:24:53 +0900
committerNobuyoshi Nakada <[email protected]>2024-07-26 11:24:53 +0900
commit5f1eb0dc79bfa6a111c85831636f8d4473f1414c (patch)
tree8a6bdd4eb77ed847533406fe5dd34e19113ea054 /compile.c
parent83a99bdbe606d3e50fbaa7ea3e260d01c2b76fc8 (diff)
Fix wrong conversion in disasm dump
`LINK_ELEMENT::type` is an `enum` not a `VALUE`, `FIX2LONG` doesn't make sense.
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
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;
}