mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Use the correct address size
This commit is contained in:
parent
77e6715d67
commit
5d756118af
Notes:
git
2021-09-24 04:29:30 +09:00
1 changed files with 3 additions and 3 deletions
|
@ -1410,10 +1410,10 @@ static uint64_t
|
|||
read_dw_form_addr(DebugInfoReader *reader, const char **ptr)
|
||||
{
|
||||
const char *p = *ptr;
|
||||
*ptr = p + reader->format;
|
||||
if (reader->format == 4) {
|
||||
*ptr = p + reader->address_size;
|
||||
if (reader->address_size == 4) {
|
||||
return read_uint32(&p);
|
||||
} else if (reader->format == 8) {
|
||||
} else if (reader->address_size == 8) {
|
||||
return read_uint64(&p);
|
||||
} else {
|
||||
fprintf(stderr,"unknown address_size:%d", reader->address_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue