notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0fc3c6
)
platform, fix debug hex dump if char type is signed
author
kub
<derkub@gmail.com>
Thu, 6 May 2021 19:21:26 +0000
(21:21 +0200)
committer
kub
<derkub@gmail.com>
Thu, 6 May 2021 19:22:31 +0000
(21:22 +0200)
platform/common/host_dasm.c
patch
|
blob
|
blame
|
history
diff --git
a/platform/common/host_dasm.c
b/platform/common/host_dasm.c
index
7b76591
..
fb7a425
100644
(file)
--- 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);