projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
BugFix: mode_b lowering might create new control flow (if ir_create_cond_set() is...
[libfirm]
/
ir
/
libcore
/
lc_appendable.c
diff --git
a/ir/libcore/lc_appendable.c
b/ir/libcore/lc_appendable.c
index
65503af
..
a2806ed
100644
(file)
--- a/
ir/libcore/lc_appendable.c
+++ b/
ir/libcore/lc_appendable.c
@@
-32,8
+32,8
@@
int lc_appendable_snwadd(lc_appendable_t *app, const char *str, size_t len,
unsigned int width, int left_just, char pad)
{
int res = 0;
-
in
t i;
-
int to_pad = width - len
;
+
size_
t i;
+
size_t to_pad = width > len ? width - len : 0
;
/* If not left justified, pad left */
for (i = 0; !left_just && i < to_pad; ++i)