diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-15 21:46:03 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-15 21:46:03 +0100 |
| commit | ba67e474d3ab48cf15916892a15759f50930f72f (patch) | |
| tree | ed91e7aaa72fb5b194455c5cbea4ace27a99c65d /src/check_type.cpp | |
| parent | b92a8c513ea04ce2c4e6245d047d47ece0b75fa2 (diff) | |
Make source code compile with 32 bit (but not build 32 bit code)
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |