summaryrefslogtreecommitdiff
path: root/gdb/m2-typeprint.c
diff options
context:
space:
mode:
authorsiddhesh <siddhesh>2012-09-24 10:25:07 +0000
committersiddhesh <siddhesh>2012-09-24 10:25:07 +0000
commit9d7b360facd268fe0d068f662fbf181811e9fcb1 (patch)
treea21b1530f78f1ccc6bc4ee85ca9f899da568deb0 /gdb/m2-typeprint.c
parentdc0147d2f341e73f1b76542d07a089c2f219363f (diff)
downloadgdb-9d7b360facd268fe0d068f662fbf181811e9fcb1.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)
{