diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cp-valprint.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c265d24..f2e672c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2013-04-19 Pedro Alves <palves@redhat.com> + * cp-valprint.c (cp_print_class_member): Change type of 'fieldno' + local to int. + +2013-04-19 Pedro Alves <palves@redhat.com> + * ada-lang.c (print_it_exception): Add cast to gdb_byte *. * ada-tasks.c (read_fat_string_value): Likewise. diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 9a8b4d3..0871848 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -768,7 +768,7 @@ cp_print_class_member (const gdb_byte *valaddr, struct type *type, print it. */ struct type *domain = TYPE_DOMAIN_TYPE (type); LONGEST val; - unsigned int fieldno; + int fieldno; val = extract_signed_integer (valaddr, TYPE_LENGTH (type), |