Fix compilation errors with Stack list
This commit is contained in:
parent
b28b1a86c9
commit
94a13b0d3c
|
@ -17,7 +17,7 @@ pub fn Stack(comptime Value: type) type {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn drop(self: *Self, count: usize) bool {
|
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];
|
self.values = self.values[0 .. updated_count];
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue