From 1dc01f11401b6ec0be1e7685cdc445d1b10d4f19 Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Fri, 26 May 2023 18:56:31 -0400 Subject: InternPool: fix build-exe and compiler-rt crashes --- src/value.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/value.zig') diff --git a/src/value.zig b/src/value.zig index 473b1c967c..23b90f40df 100644 --- a/src/value.zig +++ b/src/value.zig @@ -3166,6 +3166,11 @@ pub const Value = struct { .len = undefined, }; result_bigint.shiftLeft(lhs_bigint, shift); + if (ty.toIntern() != .comptime_int_type) { + const int_info = ty.intInfo(mod); + result_bigint.truncate(result_bigint.toConst(), int_info.signedness, int_info.bits); + } + return mod.intValue_big(ty, result_bigint.toConst()); } -- cgit v1.2.3