zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit fbbccc9d5faa3f253af147e949b7a18724d5d71c (tree)
parent f3d23d92329f4926c08c86c5ea97628b783e7d84
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date:   Wed, 18 Oct 2023 16:51:45 -0400

Builder: fix incorrect type for 32-bit systems

Diffstat:
Msrc/codegen/llvm/Builder.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/codegen/llvm/Builder.zig b/src/codegen/llvm/Builder.zig @@ -10462,7 +10462,7 @@ fn bigIntConstAssumeCapacity( const overflow = @subWithOverflow(borrow, llvm_limb); llvm_limb = overflow[0]; borrow -%= overflow[1]; - assert(borrow == 0 or borrow == std.math.maxInt(u64)); + assert(borrow == 0 or borrow == std.math.maxInt(std.math.big.Limb)); } result_limb.* = llvm_limb; }