platform, fix debug hex dump if char type is signed

This commit is contained in:
kub 2021-05-06 21:21:26 +02:00
parent d0fc3c63ba
commit d94eec4446

View file

@ -69,9 +69,9 @@ void host_dasm(void *addr, int len)
#else #else
void host_dasm(void *addr, int len) void host_dasm(void *addr, int len)
{ {
char *end = (char *)addr + len; uint8_t *end = (uint8_t *)addr + len;
char buf[64]; char buf[64];
char *p = addr; uint8_t *p = addr;
int i = 0, o = 0; int i = 0, o = 0;
o = snprintf(buf, sizeof(buf), "%p: ", p); o = snprintf(buf, sizeof(buf), "%p: ", p);