1
0
Fork 0
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:
xtkoba 2021-04-30 23:22:37 +09:00 committed by Aaron Patterson
parent 3531c859a6
commit f140965b97
Notes: git 2021-09-24 04:29:31 +09:00

View file

@ -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;
}
}
}