summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc-simple
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2001-08-09 12:06:19 +0000
committerDavid McCullough <davidm@snapgear.com>2001-08-09 12:06:19 +0000
commit60acedb05a0ff950b3c197be90f3111f8e6980a3 (patch)
tree3d8b18ef85974d9db870f1fc728be4811e524625 /libc/stdlib/malloc-simple
parentca73e6a5f6856e6a324fb9da004c936709d6fa71 (diff)
Fix a couple of warnings
Diffstat (limited to 'libc/stdlib/malloc-simple')
-rw-r--r--libc/stdlib/malloc-simple/alloc.c4
1 files changed, 2 insertions, 2 deletions
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);