From 01e6a7cb566e07125438ae1c2cc2692eb9021e0d Mon Sep 17 00:00:00 2001 From: kayomn Date: Sat, 15 Oct 2022 01:28:13 +0100 Subject: [PATCH] Fix compilation error in tests --- src/stack.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stack.zig b/src/stack.zig index c4b5963..4f82925 100755 --- a/src/stack.zig +++ b/src/stack.zig @@ -26,7 +26,7 @@ pub fn Fixed(comptime Element: type) type { return io.Writer.wrap(Self, self, struct { fn write(stack: *Self, buffer: []const u8) usize { stack.pushAll(buffer) catch |err| switch (err) { - error.Overflow => return 0, + error.OutOfMemory => return 0, }; return buffer.len;