windows build fixes

This commit is contained in:
ari melody 2024-06-24 17:37:12 +01:00
parent 22e60ee228
commit d2fe432828
Signed by: ari
GPG key ID: CF99829C92678188
3 changed files with 5 additions and 1 deletions

View file

@ -72,7 +72,7 @@ int main(int argc, char **argv) {
}
// get length of file
fseek(input_file, -sizeof(char), SEEK_END);
fseek(input_file, (long)-sizeof(char), SEEK_END);
size_t length = ftell(input_file);
fseek(input_file, 0, SEEK_SET);