aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorjoachimschmidt557 <joachim.schmidt557@outlook.com>2021-05-25 10:34:02 +0800
committerAndrew Kelley <andrew@ziglang.org>2021-05-25 15:38:32 -0400
commit4c75f834e7195d05ca4f358aa093003e60380be7 (patch)
tree23c0e8998a21e7f5c0d8e08bc580c3a449e92174 /src/type.zig
parent8c5d4295e5f6459ba99d219c1922a30ec6da24bf (diff)
downloadzig-4c75f834e7195d05ca4f358aa093003e60380be7.tar.gz
zig-4c75f834e7195d05ca4f358aa093003e60380be7.zip
Re-enable building the self-hosted compiler for 32-bit targets
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig2
1 files changed, 1 insertions, 1 deletions
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()) {