From 94a13b0d3c3dde275a060d82a1efb9e08287103f Mon Sep 17 00:00:00 2001 From: kayomn Date: Tue, 7 Nov 2023 23:02:49 +0000 Subject: [PATCH] Fix compilation errors with Stack list --- source/coral/list.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/coral/list.zig b/source/coral/list.zig index a9f48ea..5fa5040 100644 --- a/source/coral/list.zig +++ b/source/coral/list.zig @@ -17,7 +17,7 @@ pub fn Stack(comptime Value: type) type { } pub fn drop(self: *Self, count: usize) bool { - if (math.checked_sub(self.values, count)) |updated_count| { + if (math.checked_sub(self.values.len, count)) |updated_count| { self.values = self.values[0 .. updated_count]; return true;