From: kub Date: Thu, 6 May 2021 19:21:26 +0000 (+0200) Subject: platform, fix debug hex dump if char type is signed X-Git-Tag: v2.00~537 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d94eec44467ea4fea63a31eac5a5d58655242aea;p=picodrive.git platform, fix debug hex dump if char type is signed --- diff --git a/platform/common/host_dasm.c b/platform/common/host_dasm.c index 7b76591f..fb7a4259 100644 --- a/platform/common/host_dasm.c +++ b/platform/common/host_dasm.c @@ -69,9 +69,9 @@ void host_dasm(void *addr, int len) #else void host_dasm(void *addr, int len) { - char *end = (char *)addr + len; + uint8_t *end = (uint8_t *)addr + len; char buf[64]; - char *p = addr; + uint8_t *p = addr; int i = 0, o = 0; o = snprintf(buf, sizeof(buf), "%p: ", p);