aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-lang.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/m2-lang.h')
-rw-r--r--gdb/m2-lang.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/m2-lang.h b/gdb/m2-lang.h
index ed79cc8..249fdf7 100644
--- a/gdb/m2-lang.h
+++ b/gdb/m2-lang.h
@@ -118,12 +118,12 @@ public:
{
type = check_typedef (type);
if (type->code () == TYPE_CODE_ARRAY
- && TYPE_LENGTH (type) > 0
- && TYPE_LENGTH (type->target_type ()) > 0)
+ && type->length () > 0
+ && type->target_type ()->length () > 0)
{
struct type *elttype = check_typedef (type->target_type ());
- if (TYPE_LENGTH (elttype) == 1
+ if (elttype->length () == 1
&& (elttype->code () == TYPE_CODE_INT
|| elttype->code () == TYPE_CODE_CHAR))
return true;