diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-12-09 12:30:00 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-12-09 12:30:00 +0900 |
commit | 751a9b32e5a53336768eb878de1827245a3292bf (patch) | |
tree | 64ac113c5dc570897cec16f8a43787fbe4b8dc14 | |
parent | 036bc1da6c6c9b0fa9b7f5968d897a9554dd770e (diff) |
vm_args.c (rb_warn_check): Use unique_id * 2 instead of unique_id
The function assumed that the LSB of `callee` was 0.
-rw-r--r-- | vm_args.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -597,7 +597,7 @@ static VALUE rb_warn_check(const rb_execution_context_t * const ec, const rb_ise { if (!iseq) return 0; - const void *const callee = (void *)iseq->body->iseq_unique_id; + const void *const callee = (void *)(iseq->body->iseq_unique_id * 2); const rb_control_frame_t * const cfp = rb_vm_get_ruby_level_next_cfp(ec, ec->cfp); |