diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-28 18:46:27 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2019-05-29 04:33:24 -0400 |
commit | 66c1ea79516a0b31043dc604172a42cd859e5b47 (patch) | |
tree | 72e609133723699079d5e5b978bc31fc55d90264 /src | |
parent | 390e9e20c029e4eb159d39bd3d79160ca4567650 (diff) |
fix compiler warnings when _TRACE_HEAP is defined
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/Alloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Alloc.c b/src/Alloc.c index 7013f1c..dd2f616 100644 --- a/src/Alloc.c +++ b/src/Alloc.c @@ -249,7 +249,7 @@ char* _XtHeapAlloc( if ((bytes + sizeof(char*)) >= (HEAP_SEGMENT_SIZE>>1)) { /* preserve current segment; insert this one in front */ #ifdef _TRACE_HEAP - printf( "allocating large segment (%d bytes) on heap %#x\n", + printf( "allocating large segment (%d bytes) on heap %p\n", bytes, heap ); #endif heap_loc = XtMalloc(bytes + (Cardinal) sizeof(char*)); @@ -265,7 +265,7 @@ char* _XtHeapAlloc( } /* else discard remainder of this segment */ #ifdef _TRACE_HEAP - printf( "allocating new segment on heap %#x\n", heap ); + printf( "allocating new segment on heap %p\n", heap ); #endif heap_loc = XtMalloc((unsigned)HEAP_SEGMENT_SIZE); *(char**)heap_loc = heap->start; |