X-Git-Url: http://git.imager.perl.org/poe-xs-queue-array.git/blobdiff_plain/800342e10770889f6a235ead8ef8b3dd14bcf375..a2330224e73f9c87a745975c6a385bf88ad50991:/alloc.c diff --git a/alloc.c b/alloc.c index d2bee61..b23b3de 100644 --- a/alloc.c +++ b/alloc.c @@ -237,15 +237,15 @@ mymalloc(size_t size) { void *buf; if (size < 0) { - fprintf(stderr, "Attempt to allocate size %d\n", size); + fprintf(stderr, "Attempt to allocate size %d\n", (int)size); exit(3); } if ( (buf = malloc(size)) == NULL ) { - mm_log((1, "mymalloc: unable to malloc %d\n", size)); - fprintf(stderr,"Unable to malloc %d.\n", size); exit(3); + mm_log((1, "mymalloc: unable to malloc %d\n", (int)size)); + fprintf(stderr,"Unable to malloc %d.\n", (int)size); exit(3); } - mm_log((1, "mymalloc(size %d) -> %p\n", size, buf)); + mm_log((1, "mymalloc(size %d) -> %p\n", (int)size, buf)); return buf; }