* m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.

* p-valprint.c (pascal_type_print_base): Likewise.
This commit is contained in:
Siddhesh Poyarekar 2012-09-24 10:25:09 +00:00
parent b6b05ca274
commit b4aa388a20
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
* m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
* p-valprint.c (pascal_type_print_base): Likewise.
2012-09-22 Yao Qi <yao@codesourcery.com>
* remote.c (remote_get_trace_status): Remove setting default

View File

@ -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)
{

View File

@ -440,7 +440,7 @@ pascal_type_print_base (struct type *type, struct ui_file *stream, int show,
{
int i;
int len;
int lastval;
LONGEST lastval;
enum
{
s_none, s_public, s_private, s_protected