From 4c75f834e7195d05ca4f358aa093003e60380be7 Mon Sep 17 00:00:00 2001 From: joachimschmidt557 Date: Tue, 25 May 2021 10:34:02 +0800 Subject: Re-enable building the self-hosted compiler for 32-bit targets --- src/type.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/type.zig') diff --git a/src/type.zig b/src/type.zig index e54413ffb9..14646450aa 100644 --- a/src/type.zig +++ b/src/type.zig @@ -2641,7 +2641,7 @@ pub const Type = extern union { }; const end_val = Value.initPayload(&end_payload.base); if (int_val.compare(.gte, end_val)) return null; - return int_val.toUnsignedInt(); + return @intCast(usize, int_val.toUnsignedInt()); } }; switch (ty.tag()) { -- cgit v1.2.3