From: Kaveh R. Ghazi Date: Sat, 10 Aug 2002 12:23:12 +0000 (+0000) Subject: gengtype.c (write_gc_structure_fields): Avoid signed/unsigned warnings in output... X-Git-Tag: releases/gcc-3.3.0~3351 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fac37dc49748835a2264f9a53b485b89aceb5718;p=thirdparty%2Fgcc.git gengtype.c (write_gc_structure_fields): Avoid signed/unsigned warnings in output files. * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned warnings in output files. From-SVN: r56181 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index df1380c3953a..787ae7a527af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-08-10 Kaveh R. Ghazi + + * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned + warnings in output files. + 2002-08-09 Ziemowit Laski * c-common.c (flag_objc): New. diff --git a/gcc/gengtype.c b/gcc/gengtype.c index adc3932293d4..e87cd5cc8d1d 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -1129,7 +1129,7 @@ write_gc_structure_fields (of, s, val, prev_val, opts, indent, line, bitmap, oprintf (of, "%*ssize_t i%d;\n", indent, "", loopcounter); oprintf (of, "%*sggc_set_mark (%s.%s);\n", indent, "", val, f->name); - oprintf (of, "%*sfor (i%d = 0; i%d < (", indent, "", + oprintf (of, "%*sfor (i%d = 0; i%d < (size_t)(", indent, "", loopcounter, loopcounter); output_escaped_param (of, length, val, prev_val, "length", line); oprintf (of, "); i%d++) {\n", loopcounter);