mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix return value when base != 0
This commit is contained in:
parent
3531c859a6
commit
f140965b97
Notes:
git
2021-09-24 04:29:31 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -1487,7 +1487,7 @@ ranges_include(DebugInfoReader *reader, ranges_t *ptr, uint64_t addr)
|
|||
base = to;
|
||||
}
|
||||
else if (base + from <= addr && addr < base + to) {
|
||||
return from;
|
||||
return (uintptr_t)base + from;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue