Fix compilation errors with Stack list

This commit is contained in:
kayomn 2023-11-07 23:02:49 +00:00
parent b28b1a86c9
commit 94a13b0d3c
1 changed files with 1 additions and 1 deletions

View File

@ -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;