fix: изменение типа переменной на подходящий

По стандарту ftell возвращает long.
This commit is contained in:
Artyom Gavrilov
2025-02-05 23:20:31 +03:00
parent 6cc23a2991
commit 5f20220d4e

View File

@@ -67,7 +67,7 @@ static int read_file(const char* filename) {
goto close_file;
}
size_t fsize = ftell(fd);
long fsize = ftell(fd);
fseek(fd, 0, SEEK_SET);
if (ret < 0) {
ret = -errno;