git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2018-10-11 23:55:45 +00:00
Родитель 692a5f2164
Коммит 69f06e9e84
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -850,7 +850,7 @@ static uint32_t
read_uint24(char **ptr) { read_uint24(char **ptr) {
const unsigned char *p = (const unsigned char *)*ptr; const unsigned char *p = (const unsigned char *)*ptr;
*ptr = (char *)(p + 3); *ptr = (char *)(p + 3);
return (get_uint8(p) << 16) | get_uint16(p+1); return (*p << 16) | get_uint16(p+1);
} }
static uint32_t static uint32_t
@ -1131,13 +1131,13 @@ debug_info_reader_read_value(DebugInfoReader *reader, uint64_t form, DebugInfoVa
set_uint_value(v, read_uint64(&reader->p)); set_uint_value(v, read_uint64(&reader->p));
break; break;
case DW_FORM_implicit_const: case DW_FORM_implicit_const:
set_sint_value(v, read_sleb128(&reader->q)); set_int_value(v, sleb128(&reader->q));
break; break;
case DW_FORM_loclistx: case DW_FORM_loclistx:
set_uint_value(v, read_uleb128(&reader->q)); set_uint_value(v, read_uleb128(reader));
break; break;
case DW_FORM_rnglistx: case DW_FORM_rnglistx:
set_uint_value(v, read_uleb128(&reader->q)); set_uint_value(v, read_uleb128(reader));
break; break;
case DW_FORM_ref_sup8: case DW_FORM_ref_sup8:
set_uint_value(v, read_uint64(&reader->p)); set_uint_value(v, read_uint64(&reader->p));