From 80cfe97582e9334d732bb76f6ffe06a5462c926d Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 5 Jan 2011 17:28:39 +0000 Subject: [PATCH] fix warnings about wrong format specifiers for size_t [r28208] --- ir/adt/bitset.h | 2 +- ir/be/becopyheur4.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } } } -- 2.20.1