mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix wrong conversion in disasm dump
`LINK_ELEMENT::type` is an `enum` not a `VALUE`, `FIX2LONG` doesn't make sense.
This commit is contained in:
parent
83a99bdbe6
commit
5f1eb0dc79
1 changed files with 1 additions and 1 deletions
|
@ -11326,7 +11326,7 @@ dump_disasm_list_with_cursor(const LINK_ELEMENT *link, const LINK_ELEMENT *curr,
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
/* ignore */
|
/* 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;
|
link = link->next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue