Преглед на файлове

Fix a couple of warnings

David McCullough преди 24 години
родител
ревизия
60acedb05a
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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);