aboutsummaryrefslogtreecommitdiff
path: root/src/stack.zig
diff options
context:
space:
mode:
authorJulien Dessaux2023-12-18 07:26:01 +0100
committerJulien Dessaux2023-12-18 15:16:51 +0100
commit83af8ab1249b98bb5cf691b88bfc947d1d688710 (patch)
treeaa6833315a336959fbca035b82106ce81d5e5add /src/stack.zig
parentUpdated README for last zig version (diff)
downloadzigfunge98-83af8ab1249b98bb5cf691b88bfc947d1d688710.tar.gz
zigfunge98-83af8ab1249b98bb5cf691b88bfc947d1d688710.tar.bz2
zigfunge98-83af8ab1249b98bb5cf691b88bfc947d1d688710.zip
zig 0.11 changes
Diffstat (limited to '')
-rw-r--r--src/stack.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stack.zig b/src/stack.zig
index c1f8696..dd76af1 100644
--- a/src/stack.zig
+++ b/src/stack.zig
@@ -1,5 +1,5 @@
const std = @import("std");
-const vector = std.meta.Vector(2, i64);
+const vector = @Vector(2, i64);
pub const Stack = struct {
allocator: std.mem.Allocator,
@@ -78,7 +78,7 @@ pub const Stack = struct {
// (aka begin) and '}' (aka end) stackstack commands
try toss.data.ensureUnusedCapacity(n);
var i: usize = n;
- while (i >= std.math.min(soss.data.items.len, n) + 1) : (i -= 1) {
+ while (i >= @min(soss.data.items.len, n) + 1) : (i -= 1) {
toss.data.appendAssumeCapacity(0);
}
while (i >= 1) : (i -= 1) {