authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-04-25 21:10:46 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-04-25 21:10:46 -07:00
logb96b0f26a452ab814ae2b5705ae69feb531802e8
tree4b7021fc41feb29e0f687cd47988c96d861dff18
parente0e12388360dd5b8040469a4ee5ca81cb4dc0870
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

fix writeStruct


1 files changed, 1 insertions(+), 1 deletions(-)

nio.zig+1-1
...@@ -223,7 +223,7 @@ pub fn Writable(T: type, this_kind: enum { _var, _const, _bare }) type {...@@ -223,7 +223,7 @@ pub fn Writable(T: type, this_kind: enum { _var, _const, _bare }) type {
223223
224 pub fn writeStruct(self: Self, value: anytype) Error!void {224 pub fn writeStruct(self: Self, value: anytype) Error!void {
225 // Only extern and packed structs have defined in-memory layout.225 // Only extern and packed structs have defined in-memory layout.
226 comptime std.debug.assert(@typeInfo(@TypeOf(value)).Struct.layout != .Auto);226 comptime std.debug.assert(@typeInfo(@TypeOf(value)).@"struct".layout != .auto);
227 return writeAll(self, std.mem.asBytes(&value));227 return writeAll(self, std.mem.asBytes(&value));
228 }228 }
229229