Browse Source

Fix a couple of warnings

David McCullough 24 years ago
parent
commit
60acedb05a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      libc/stdlib/malloc-simple/alloc.c

+ 2 - 2
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);