diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2023-03-15 17:55:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-15 17:55:29 -0400 |
commit | 9a735c776b5413377a921949494f42d1e15851ba (patch) | |
tree | 83c0a8b422f5b14167003eebc5210077a8b15f56 /yjit/src/utils.rs | |
parent | 4ae9c34a4e00d148f206affb3a65926bf3fe230f (diff) | |
download | ruby-9a735c776b5413377a921949494f42d1e15851ba.tar.gz |
YJIT: use u16 for insn_idx instead of u32 (#7534)
Diffstat (limited to 'yjit/src/utils.rs')
-rw-r--r-- | yjit/src/utils.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/utils.rs b/yjit/src/utils.rs index f66000381e..d9a75b5302 100644 --- a/yjit/src/utils.rs +++ b/yjit/src/utils.rs @@ -86,7 +86,7 @@ fn ruby_str_to_rust(v: VALUE) -> String { // Location is the file defining the method, colon, method name. // Filenames are sometimes internal strings supplied to eval, // so be careful with them. -pub fn iseq_get_location(iseq: IseqPtr, pos: u32) -> String { +pub fn iseq_get_location(iseq: IseqPtr, pos: u16) -> String { let iseq_label = unsafe { rb_iseq_label(iseq) }; let iseq_path = unsafe { rb_iseq_path(iseq) }; let iseq_lineno = unsafe { rb_iseq_line_no(iseq, pos as usize) }; |