Make dprintfs 64-bit clean

This commit is contained in:
Tau
2018-12-17 17:34:15 -05:00
parent 755be05603
commit ee011a74d4
9 changed files with 43 additions and 27 deletions

View File

@ -24,7 +24,7 @@ void dump(const void *ptr, size_t nbytes)
bytes = ptr;
for (i = 0 ; i < nbytes ; i += 16) {
dprintf(" %08x:", i);
dprintf(" %08x:", (int) i);
for (j = 0 ; i + j < nbytes && j < 16 ; j++) {
dprintf(" %02x", bytes[i + j]);