diff --git a/misc.c b/misc.c index fbfc34f2..8f728eea 100644 --- a/misc.c +++ b/misc.c @@ -605,7 +605,7 @@ void debug_memdump(void *buf, int len, int L) if (L) { int delta; debug_printf("\t%d (0x%x) bytes:\n", len, len); - delta = 15 & (int) p; + delta = 15 & (unsigned long int) p; p -= delta; len += delta; }