summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-12-09 12:30:00 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-12-09 12:30:00 +0900
commit751a9b32e5a53336768eb878de1827245a3292bf (patch)
tree64ac113c5dc570897cec16f8a43787fbe4b8dc14
parent036bc1da6c6c9b0fa9b7f5968d897a9554dd770e (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_args.c b/vm_args.c
index 41824527de3..c6c111865ee 100644
--- a/vm_args.c
+++ b/vm_args.c
@@ -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);