From: Michael Beck Date: Wed, 13 Dec 2006 13:30:21 +0000 (+0000) Subject: more portable printf format X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=a3e1114647fcd76f50b66a535d9d264568b9ce4d;p=libfirm more portable printf format --- diff --git a/ir/be/test/dumpmem.h b/ir/be/test/dumpmem.h index 7e515aaac..b3e9171c1 100644 --- 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("%02hhx", p[i]); + printf("%02x", p[i]); if((i % 4) == 3) { printf("\n"); }