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;