From 90a72a8dd7a66bb7784ec1698a3fa2cebb3139d6 Mon Sep 17 00:00:00 2001 From: SpookyDervish Date: Mon, 13 Apr 2026 06:47:31 +1000 Subject: [PATCH] stupid fileio bug --- libs/fileio/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/fileio/fileio.c b/libs/fileio/fileio.c index 63651ed..d888617 100644 --- a/libs/fileio/fileio.c +++ b/libs/fileio/fileio.c @@ -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);