summaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index df5fd80414d..a67ecc09f95 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -673,7 +673,7 @@ ada_discrete_type_high_bound (struct type *type)
{
const dynamic_prop &high = type->bounds ()->high;
- if (high.kind () == PROP_CONST)
+ if (high.is_constant ())
return high.const_val ();
else
{
@@ -708,7 +708,7 @@ ada_discrete_type_low_bound (struct type *type)
{
const dynamic_prop &low = type->bounds ()->low;
- if (low.kind () == PROP_CONST)
+ if (low.is_constant ())
return low.const_val ();
else
{
@@ -11576,7 +11576,7 @@ ada_modulus (struct type *type)
{
const dynamic_prop &high = type->bounds ()->high;
- if (high.kind () == PROP_CONST)
+ if (high.is_constant ())
return (ULONGEST) high.const_val () + 1;
/* If TYPE is unresolved, the high bound might be a location list. Return