1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-01-10 08:27:48 +05:30

reverse-ramdisk.c: remove an unnecessary cast

This commit is contained in:
パチュリー・ノーレッジ 2024-01-03 21:43:22 +03:00
parent e7990709ed
commit 9059cf1056
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -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;