Fix fputc

This commit is contained in:
Radek Micek
2025-01-01 12:07:15 +01:00
committed by Christoffer Lerno
parent 0a809ab5f0
commit ece6efc75e

View File

@@ -77,7 +77,7 @@ fn usz! native_fwrite(CFile file, char[] buffer) @inline
fn void! native_fputc(CInt c, CFile stream) @inline
{
if (!libc::fputc(c, stream)) return IoError.EOF?;
if (libc::fputc(c, stream) == libc::EOF) return IoError.EOF?;
}
fn usz! native_fread(CFile file, char[] buffer) @inline