projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed09bfa
)
Use correct output format for unsigned cost values!
author
Thomas Bersch
<bersch@ipd.info.uni-karlsruhe.de>
Wed, 21 Jul 2010 12:56:11 +0000
(12:56 +0000)
committer
Thomas Bersch
<bersch@ipd.info.uni-karlsruhe.de>
Wed, 21 Jul 2010 12:56:11 +0000
(12:56 +0000)
[r27768]
html_dumper.c
patch
|
blob
|
history
diff --git
a/html_dumper.c
b/html_dumper.c
index
f9206ee
..
60be3bd
100644
(file)
--- 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;
}