diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-type.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c index 34cb849..e99ee41 100644 --- a/gdb/python/py-type.c +++ b/gdb/python/py-type.c @@ -592,12 +592,12 @@ typy_range (PyObject *self, PyObject *args) { case TYPE_CODE_ARRAY: case TYPE_CODE_STRING: - low = TYPE_LOW_BOUND (type->index_type ()); - high = TYPE_HIGH_BOUND (type->index_type ()); + low = type->index_type ()->bounds ()->low.const_val (); + high = type->index_type ()->bounds ()->high.const_val (); break; case TYPE_CODE_RANGE: - low = TYPE_LOW_BOUND (type); - high = TYPE_HIGH_BOUND (type); + low = type->bounds ()->low.const_val (); + high = type->bounds ()->high.const_val ();; break; } |