projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cf313f
)
tiny bugfix with writing one byte at a time
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Wed, 2 Feb 2022 14:30:25 +0000
(08:30 -0600)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Wed, 2 Feb 2022 14:30:25 +0000
(08:30 -0600)
core/os/onyx_fs.onyx
patch
|
blob
|
history
diff --git
a/core/os/onyx_fs.onyx
b/core/os/onyx_fs.onyx
index 48f31833ec9337ebc68bd3657262ad5d21e5f63c..0585cb426052e4a166292b33c0345eb08601c642 100644
(file)
--- 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;
},