]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gengtype.c (write_gc_structure_fields): Avoid signed/unsigned warnings in output...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 10 Aug 2002 12:23:12 +0000 (12:23 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 10 Aug 2002 12:23:12 +0000 (12:23 +0000)
* gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
warnings in output files.

From-SVN: r56181

gcc/ChangeLog
gcc/gengtype.c

index df1380c3953a5ecb44e4855fe2a294546782ce96..787ae7a527af2b9258c18cacf81142741c4ed18b 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
+       warnings in output files.
+
 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
 
        * c-common.c (flag_objc): New.
index adc3932293d4128f80c07d2a76019a3821a695c6..e87cd5cc8d1d6832c144f065f179d5e25558fc9c 100644 (file)
@@ -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);