Commit 2dd8ca17 authored by Michael Beck's avatar Michael Beck
Browse files

Partly revert r28208 by using ir_printf with %zu format for size_t.

[r28214]
parent 62ee2ceb
/*
* Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
* Copyright (C) 1995-2011 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
......@@ -31,6 +31,7 @@
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "irprintf.h"
#include "xmalloc.h"
#include "bitfiddle.h"
......@@ -349,7 +350,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%lu", prefix, (unsigned long) i);
ir_fprintf(file, "%s%zu", prefix, i);
prefix = ",";
}
putc('}', file);
......
/*
* Copyright (C) 1995-2010 University of Karlsruhe. All right reserved.
* Copyright (C) 1995-2011 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
......@@ -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, " %lu", (unsigned long) idx);
ir_fprintf(stderr, " %zu", idx);
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment