Further tweaks to perluniintro.pod
[p5sagit/p5-mst-13.2.git] / malloc.c
index aafe41d..e648401 100644 (file)
--- a/malloc.c
+++ b/malloc.c
@@ -930,7 +930,7 @@ static      u_int goodsbrk;
 
 static char *emergency_buffer;
 static MEM_SIZE emergency_buffer_size;
-static int no_mem;     /* 0 if the last request for more memory succeeded.
+static MEM_SIZE no_mem;        /* 0 if the last request for more memory succeeded.
                           Otherwise the size of the failing request. */
 
 static Malloc_t
@@ -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
@@ -1167,7 +1167,7 @@ Perl_malloc(register size_t nbytes)
 
 static char *last_sbrk_top;
 static char *last_op;                  /* This arena can be easily extended. */
-static int sbrked_remains;
+static MEM_SIZE sbrked_remains;
 static int sbrk_good = SBRK_ALLOW_FAILURES * SBRK_FAILURE_PRICE;
 
 #ifdef DEBUGGING_MSTATS