From: Matthias Braun Date: Wed, 5 Jan 2011 17:28:39 +0000 (+0000) Subject: fix warnings about wrong format specifiers for size_t X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=80cfe97582e9334d732bb76f6ffe06a5462c926d;p=libfirm fix warnings about wrong format specifiers for size_t [r28208] --- diff --git a/ir/adt/bitset.h b/ir/adt/bitset.h index c3858a39c..0dec42363 100644 --- a/ir/adt/bitset.h +++ b/ir/adt/bitset.h @@ -349,7 +349,7 @@ static inline void bitset_fprint(FILE *file, const bitset_t *bs) putc('{', file); for(i = bitset_next_set(bs, 0); i != (size_t)-1; i = bitset_next_set(bs, i + 1)) { - fprintf(file, "%s%d", prefix, i); + fprintf(file, "%s%lu", prefix, (unsigned long) i); prefix = ","; } putc('}', file); diff --git a/ir/be/becopyheur4.c b/ir/be/becopyheur4.c index 479964d64..f68d4c5ba 100644 --- a/ir/be/becopyheur4.c +++ b/ir/be/becopyheur4.c @@ -181,7 +181,7 @@ static void dbg_admissible_colors(const co_mst_env_t *env, const co_mst_irn_t *n fprintf(stderr, "no admissible colors?!?"); else { bitset_foreach(node->adm_colors, idx) { - fprintf(stderr, " %d", idx); + fprintf(stderr, " %lu", (unsigned long) idx); } } }