From 057ee3ec9a6b9553922f176f13b9127e7b9b3892 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Wed, 2 Feb 2022 08:30:25 -0600 Subject: [PATCH] tiny bugfix with writing one byte at a time --- core/os/onyx_fs.onyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/os/onyx_fs.onyx b/core/os/onyx_fs.onyx index 48f31833..0585cb42 100644 --- a/core/os/onyx_fs.onyx +++ b/core/os/onyx_fs.onyx @@ -80,7 +80,8 @@ __file_stream_vtable := io.Stream_Vtable.{ write_byte = (use fs: ^os.File, byte: u8) -> io.Error { b := byte; - error := __file_write(data.handle, .{ ^b, 1 }, null); + bytes_wrote: u64; + error := __file_write(data.handle, .{ ^b, 1 }, ^bytes_wrote); return error; }, -- 2.25.1