From: Thomas Bersch Date: Wed, 21 Jul 2010 12:56:11 +0000 (+0000) Subject: Use correct output format for unsigned cost values! X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=f45c6fa808740a54dbc970bb2783677245af32d2;p=libfirm Use correct output format for unsigned cost values! [r27768] --- diff --git a/html_dumper.c b/html_dumper.c index f9206ee55..60be3bd7e 100644 --- a/html_dumper.c +++ b/html_dumper.c @@ -41,7 +41,11 @@ static const char *cost2a(num const cost) static char buf[10]; if (cost == INF_COSTS) return "inf"; +#if KAPS_USE_UNSIGNED + sprintf(buf, "%u", cost); +#else sprintf(buf, "%10lld", cost); +#endif return buf; }