summaryrefslogtreecommitdiff
path: root/gdb/m2-typeprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/m2-typeprint.c')
-rw-r--r--gdb/m2-typeprint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c
index 00a328852e9..2eea410bcd3 100644
--- a/gdb/m2-typeprint.c
+++ b/gdb/m2-typeprint.c
@@ -227,7 +227,7 @@ static void m2_array (struct type *type, struct ui_file *stream,
{
gdb_printf (stream, "ARRAY [");
if (type->target_type ()->length () > 0
- && type->bounds ()->high.kind () != PROP_UNDEFINED)
+ && type->bounds ()->high.is_constant ())
{
if (type->index_type () != 0)
{