diff options
Diffstat (limited to 'gdb/cli/cli-utils.c')
-rw-r--r-- | gdb/cli/cli-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-utils.c b/gdb/cli/cli-utils.c index 7d152a9..710fd52 100644 --- a/gdb/cli/cli-utils.c +++ b/gdb/cli/cli-utils.c @@ -37,7 +37,7 @@ get_ulongest (const char **pp, int trailer) if (val != NULL) /* Value history reference */ { - if (TYPE_CODE (value_type (val)) == TYPE_CODE_INT) + if (value_type (val)->code () == TYPE_CODE_INT) retval = value_as_long (val); else error (_("History value must have integer type.")); @@ -96,7 +96,7 @@ get_number_trailer (const char **pp, int trailer) if (val) /* Value history reference */ { - if (TYPE_CODE (value_type (val)) == TYPE_CODE_INT) + if (value_type (val)->code () == TYPE_CODE_INT) retval = value_as_long (val); else { |