diff options
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/value.c b/gdb/value.c index 00d8ded..3a5b02b 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2781,7 +2781,7 @@ unpack_long (struct type *type, const gdb_byte *valaddr) else result = extract_signed_integer (valaddr, len, byte_order); if (code == TYPE_CODE_RANGE) - result += TYPE_RANGE_DATA (type)->bias; + result += type->bounds ()->bias; return result; } @@ -3331,7 +3331,7 @@ pack_long (gdb_byte *buf, struct type *type, LONGEST num) switch (type->code ()) { case TYPE_CODE_RANGE: - num -= TYPE_RANGE_DATA (type)->bias; + num -= type->bounds ()->bias; /* Fall through. */ case TYPE_CODE_INT: case TYPE_CODE_CHAR: |