From 60acedb05a0ff950b3c197be90f3111f8e6980a3 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 9 Aug 2001 12:06:19 +0000 Subject: Fix a couple of warnings --- libc/stdlib/malloc-simple/alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/malloc-simple/alloc.c b/libc/stdlib/malloc-simple/alloc.c index a4c06d75c..79ea17794 100644 --- a/libc/stdlib/malloc-simple/alloc.c +++ b/libc/stdlib/malloc-simple/alloc.c @@ -14,7 +14,7 @@ void *calloc_dbg(size_t num, size_t size, char *function, char *file, { void *ptr; - fprintf(stderr, "calloc of %d bytes at %s @%s:%d = ", num * size, + fprintf(stderr, "calloc of %d bytes at %s @%s:%d = ", (int) (num * size), function, file, line); ptr = calloc(num, size); fprintf(stderr, "%p\n", ptr); @@ -29,7 +29,7 @@ void *malloc_dbg(size_t size, char *function, char *file, int line) { void *result; - fprintf(stderr, "malloc of %d bytes at %s @%s:%d = ", size, function, + fprintf(stderr, "malloc of %d bytes at %s @%s:%d = ", (int) size, function, file, line); result = malloc(size); fprintf(stderr, "%p\n", result); -- cgit v1.2.3