projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Example for optimizing non-strict programs using combo.
[libfirm]
/
ir
/
be
/
test
/
dumpmem.h
diff --git
a/ir/be/test/dumpmem.h
b/ir/be/test/dumpmem.h
index
7e515aa
..
b3e9171
100644
(file)
--- a/
ir/be/test/dumpmem.h
+++ b/
ir/be/test/dumpmem.h
@@
-3,10
+3,10
@@
static void dumpMem(void* ptr, size_t size)
{
size_t i;
- char* p = ptr;
+
unsigned
char* p = ptr;
printf("\n");
for(i = 0; i < size; ++i) {
- printf("%02
hh
x", p[i]);
+ printf("%02x", p[i]);
if((i % 4) == 3) {
printf("\n");
}