authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-24 22:17:13 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-08-24 22:17:13 -07:00
log8895c06475b9a14f4e08a18d3b39bc4162e424c0
tree44ef1c5d8f6b0fdc6617f305fe9c98a6ba1a8522
parent4ff301b3fea0039bd6247ceff407cb40cef6f8c7

readFn is allowzero now


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

File.zig+1-1
......@@ -26,7 +26,7 @@ pub fn read(self: File, buffer: []u8) ReadError!usize {
2626
2727pub fn anyReadable(self: File) nio.AnyReadable {
2828 const S = struct {
29 fn foo(s: *anyopaque, buffer: []u8) anyerror!usize {
29 fn foo(s: *allowzero anyopaque, buffer: []u8) anyerror!usize {
3030 const fd: nfs.Handle = @enumFromInt(@intFromPtr(s));
3131 const f: File = .{ .fd = fd };
3232 return f.read(buffer);