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;