Fix fileio.{stdin,stdout,stderr} which we broke when internalizing the FILE pointer

This commit is contained in:
K. Lange 2021-01-09 22:10:04 +09:00
parent 881864a5b2
commit f19833b506

View File

@ -264,6 +264,7 @@ static void makeFileInstance(KrkInstance * module, const char name[], FILE * fil
krk_push(filename);
krk_attachNamedValue(&fileObject->fields, "filename", filename);
fileObject->_internal = file;
krk_attachNamedObject(&module->fields, name, (KrkObj*)fileObject);