@@ -672,7 +672,11 @@ end;
Procedure fpc_textclose_iso(var t : Text);compilerproc;
begin
+ { reset inout result as this procedure is only called by the compiler and no I/O checking is carried out,
+ so further I/O does not fail }
+ inoutres:=0;
close(t);
end;