From f45c6fa808740a54dbc970bb2783677245af32d2 Mon Sep 17 00:00:00 2001 From: Thomas Bersch Date: Wed, 21 Jul 2010 12:56:11 +0000 Subject: [PATCH] Use correct output format for unsigned cost values! [r27768] --- html_dumper.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.20.1