summaryrefslogtreecommitdiff
path: root/gdb/m2-typeprint.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2012-09-24 10:25:09 +0000
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2012-09-24 10:25:09 +0000
commitb4aa388a2099d88f1d521a79bdfabb0501a03f1a (patch)
tree08bede6db2aa03df3989f16af4345ebdffaf1f87 /gdb/m2-typeprint.c
parentb6b05ca2740cb638a0465f9c07b71a731026e40c (diff)
downloadbinutils-gdb-b4aa388a2099d88f1d521a79bdfabb0501a03f1a.tar.gz
* m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
* p-valprint.c (pascal_type_print_base): Likewise.
Diffstat (limited to 'gdb/m2-typeprint.c')
-rw-r--r--gdb/m2-typeprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c
index fb3d49c6de1..c735eb79d99 100644
--- a/gdb/m2-typeprint.c
+++ b/gdb/m2-typeprint.c
@@ -587,7 +587,8 @@ m2_record_fields (struct type *type, struct ui_file *stream, int show,
void
m2_enum (struct type *type, struct ui_file *stream, int show, int level)
{
- int lastval, i, len;
+ LONGEST lastval;
+ int i, len;
if (show < 0)
{