From 845a30624ffc8fab884e2b7000daddb7d49eb5ff Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Fri, 15 Apr 2022 11:13:27 +0300 Subject: [PATCH] std: add workaround for stage2 bug --- lib/std/math/big/int.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/std/math/big/int.zig b/lib/std/math/big/int.zig index 7ca9b9ccb7..614cf04f9b 100644 --- a/lib/std/math/big/int.zig +++ b/lib/std/math/big/int.zig @@ -2063,7 +2063,8 @@ pub const Const = struct { // This is the inverse of calcDivLimbsBufferLen const available_len = (limbs.len / 3) - 2; - const biggest: Const = .{ + // TODO https://github.com/ziglang/zig/issues/11439 + const biggest = comptime Const{ .limbs = &([1]Limb{math.maxInt(Limb)} ** available_len), .positive = false, };