forked from ground/ground
stupid fileio bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user