projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added the new state pin_state_exc_pinned t some Operations
[libfirm]
/
ir
/
tv
/
tv.c
diff --git
a/ir/tv/tv.c
b/ir/tv/tv.c
index
d348ce2
..
e7c1892
100644
(file)
--- a/
ir/tv/tv.c
+++ b/
ir/tv/tv.c
@@
-1481,7
+1481,7
@@
char *get_tarval_bitpattern(tarval *tv)
{
int i, j, pos = 0;
int n = get_mode_size_bits(tv->mode);
- int bytes =
n / 8 + ((n & 7) != 0)
;
+ int bytes =
(n + 7) / 8
;
char *res = malloc((n + 1) * sizeof(char));
unsigned char byte;