Use correct output format for unsigned cost values!
authorThomas Bersch <bersch@ipd.info.uni-karlsruhe.de>
Wed, 21 Jul 2010 12:56:11 +0000 (12:56 +0000)
committerThomas Bersch <bersch@ipd.info.uni-karlsruhe.de>
Wed, 21 Jul 2010 12:56:11 +0000 (12:56 +0000)
[r27768]

html_dumper.c

index f9206ee..60be3bd 100644 (file)
@@ -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;
 }