changed printf format for size_t printing
authorSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Tue, 18 Mar 2008 09:59:05 +0000 (09:59 +0000)
committerSebastian Hack <hack@ipd.info.uni-karlsruhe.de>
Tue, 18 Mar 2008 09:59:05 +0000 (09:59 +0000)
[r18972]

ast2firm.c
driver/gen_firm_asm.c
parser.c

index 09aa949..4145de9 100644 (file)
@@ -2963,7 +2963,7 @@ static __attribute__((unused)) void debug_print_type_path(const type_path_t *pat
                if(is_type_compound(type)) {
                        fprintf(stderr, ".%s", entry->compound_entry->symbol->string);
                } else if(is_type_array(type)) {
-                       fprintf(stderr, "[%u]", entry->index);
+                       fprintf(stderr, "[%zd]", entry->index);
                } else {
                        fprintf(stderr, "-INVALID-");
                }
index 40da346..21fd20e 100644 (file)
@@ -510,7 +510,7 @@ static void generate_code_Const(FILE *f, ir_node *n)
     else {
 def_mode:
       tarval_snprintf(buf, sizeof(buf), tv);
-      fprintf(f, "new_tarval_from_str(\"%s\", %u, ", buf, strlen(buf));
+      fprintf(f, "new_tarval_from_str(\"%s\", %zd, ", buf, strlen(buf));
       fprintf(f, "mode_%s)", get_mode_name(mode));
     }
   }
index 26a647c..32a2a9d 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1229,7 +1229,7 @@ static __attribute__((unused)) void debug_print_type_path(
                        }
                        fprintf(stderr, ".%s", entry->v.compound_entry->symbol->string);
                } else if(is_type_array(type)) {
-                       fprintf(stderr, "[%u]", entry->v.index);
+                       fprintf(stderr, "[%zd]", entry->v.index);
                } else {
                        fprintf(stderr, "-INVALID-");
                }