for -Dm
Slaven Rezic [Wed, 9 Oct 2002 00:49:33 +0000 (02:49 +0200)]
Message-Id: <200210082249.g98MnXqM076566@vran.herceg.de>

p4raw-id: //depot/perl@18013

malloc.c

index 00c387e..e648401 100644 (file)
--- a/malloc.c
+++ b/malloc.c
@@ -1132,7 +1132,7 @@ Perl_malloc(register size_t nbytes)
 
        DEBUG_m(PerlIO_printf(Perl_debug_log,
                              "0x%"UVxf": (%05lu) malloc %ld bytes\n",
-                             PTR2UV(p), (unsigned long)(PL_an++),
+                             PTR2UV((Malloc_t)(p + CHUNK_SHIFT)), (unsigned long)(PL_an++),
                              (long)size));
 
 #ifdef IGNORE_SMALL_BAD_FREE