From 9059cf1056a534f0d0a11601975dd7d32d5c79db Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Wed, 3 Jan 2024 21:43:22 +0300 Subject: [PATCH] reverse-ramdisk.c: remove an unnecessary cast --- c-programming/reverse-ramdisk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/c-programming/reverse-ramdisk.c b/c-programming/reverse-ramdisk.c index e7823d0..5535c38 100644 --- a/c-programming/reverse-ramdisk.c +++ b/c-programming/reverse-ramdisk.c @@ -106,8 +106,7 @@ int tf_alloc(size_t n, size_t type_size) { if (temp_files == NULL) temp_files = malloc(sizeof(TempFile)); else - temp_files = realloc(temp_files, - (size_t) num_temp_files * sizeof(TempFile)); + temp_files = realloc(temp_files, num_temp_files * sizeof(TempFile)); if (temp_files == NULL) { LINE_FAIL(-2); return -1;