From 7eabb780bdda3427f2fbb01f165c7d0d3c83bd2c Mon Sep 17 00:00:00 2001 From: Jan Philipp Hafer Date: Mon, 21 Aug 2023 16:14:14 +0200 Subject: [PATCH] const choice -> var choice --- lib/std/os.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os.zig b/lib/std/os.zig index 178f704de095..fbb08e9d5628 100644 --- a/lib/std/os.zig +++ b/lib/std/os.zig @@ -4738,7 +4738,7 @@ pub fn sysconf(sc: c_int) SysConfError!usize { else => |err| return unexpectedErrno(err), } }; - const choice: u8 = 0; + var choice: u8 = 0; choice += @intFromBool(is_minus_one); choice += @intFromBool(is_inval); switch (choice) {