Skip to content

update to zig 0.16.0; fix writer drain function and buffer - #8

Open
em-dash wants to merge 2 commits into
zig-osdev:mainfrom
em-dash:main
Open

update to zig 0.16.0; fix writer drain function and buffer#8
em-dash wants to merge 2 commits into
zig-osdev:mainfrom
em-dash:main

Conversation

@em-dash

@em-dash em-dash commented Jul 18, 2026

Copy link
Copy Markdown

update to zig 0.16.0 with some trivial changes.

fixed the drain function writing the whole buffer; write to index w.end instead. removed unnecessary splat == 0 and data.len < 1 checks; the latter is always false per the standard lib documentation.

the buffer was being set to a slice of len 0; set up a buffer correctly. added a flush to println to make sure it actually prints the line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant