From 83af8ab1249b98bb5cf691b88bfc947d1d688710 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 18 Dec 2023 07:26:01 +0100 Subject: zig 0.11 changes --- src/stack.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stack.zig') 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) { -- cgit v1.2.3