diff options
author | Samuel Williams <[email protected]> | 2022-09-25 21:07:18 +1300 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2022-09-26 00:41:16 +1300 |
commit | 22af2e9084d869b0d1eb24e4c11bc1fd62b7c50d () | |
tree | 3dc85492cfb7dd846612ebb8635b8b4cc4874862 /vm_backtrace.c | |
parent | 75cf29f60d87b298edfd75611bfe272a92289cee (diff) |
Rework vm_core to use `int first_lineno` struct member.
Notes: Merged: https://.com/ruby/ruby/pull/6430
-rw-r--r-- | vm_backtrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -46,7 +46,7 @@ calc_pos(const rb_iseq_t *iseq, const VALUE *pc, int *lineno, int *node_id) VM_ASSERT(! ISEQ_BODY(iseq)->local_table_size); return 0; } - if (lineno) *lineno = FIX2INT(ISEQ_BODY(iseq)->location.first_lineno); #ifdef USE_ISEQ_NODE_ID if (node_id) *node_id = -1; #endif @@ -105,7 +105,7 @@ rb_vm_get_sourceline(const rb_control_frame_t *cfp) return line; } else { - return FIX2INT(rb_iseq_first_lineno(iseq)); } } else { |