mirror of
https://gitlab.com/80486DX2-66/gists
synced 2025-01-10 17:32:05 +05:30
reverse-ramdisk.c: remove an unnecessary cast
This commit is contained in:
parent
e7990709ed
commit
9059cf1056
@ -106,8 +106,7 @@ int tf_alloc(size_t n, size_t type_size) {
|
|||||||
if (temp_files == NULL)
|
if (temp_files == NULL)
|
||||||
temp_files = malloc(sizeof(TempFile));
|
temp_files = malloc(sizeof(TempFile));
|
||||||
else
|
else
|
||||||
temp_files = realloc(temp_files,
|
temp_files = realloc(temp_files, num_temp_files * sizeof(TempFile));
|
||||||
(size_t) num_temp_files * sizeof(TempFile));
|
|
||||||
if (temp_files == NULL) {
|
if (temp_files == NULL) {
|
||||||
LINE_FAIL(-2);
|
LINE_FAIL(-2);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user