summaryrefslogtreecommitdiff
path: root/yjit/src/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'yjit/src/utils.rs')
-rw-r--r--yjit/src/utils.rs2
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) };