stupid fileio bug

This commit is contained in:
2026-04-13 06:47:31 +10:00
parent 9e6a0d5a83
commit 90a72a8dd7

View File

@@ -78,7 +78,7 @@ GroundValue fileStructRead(GroundScope* scope, List args) {
if (sizeField == NULL) {
ERROR("A field called \"size\" was not found", "FieldNotFound");
}
long size = sizeField->value.data.intVal;
int64_t size = sizeField->value.data.intVal;
// allocate buffer to read file into
char* buffer = malloc(size + 1);