summaryrefslogtreecommitdiff
path: root/gdb/python/py-type.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-type.c')
-rw-r--r--gdb/python/py-type.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
index 1088ee39d96..b9fa741177f 100644
--- a/gdb/python/py-type.c
+++ b/gdb/python/py-type.c
@@ -609,12 +609,12 @@ typy_range (PyObject *self, PyObject *args)
case TYPE_CODE_ARRAY:
case TYPE_CODE_STRING:
case TYPE_CODE_RANGE:
- if (type->bounds ()->low.kind () == PROP_CONST)
+ if (type->bounds ()->low.is_constant ())
low = type->bounds ()->low.const_val ();
else
low = 0;
- if (type->bounds ()->high.kind () == PROP_CONST)
+ if (type->bounds ()->high.is_constant ())
high = type->bounds ()->high.const_val ();
else
high = 0;