From ba67e474d3ab48cf15916892a15759f50930f72f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 15 Jun 2018 21:46:03 +0100 Subject: Make source code compile with 32 bit (but not build 32 bit code) --- src/check_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index fc43077b2..7751dca59 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -137,7 +137,7 @@ bool check_custom_align(CheckerContext *ctx, AstNode *node, i64 *align_) { if (is_type_untyped(type) || is_type_integer(type)) { if (o.value.kind == ExactValue_Integer) { i64 align = o.value.value_integer; - if (align < 1 || !gb_is_power_of_two(align)) { + if (align < 1 || !gb_is_power_of_two(cast(isize)align)) { error(node, "#align must be a power of 2, got %lld", align); return false; } -- cgit v1.2.3