diff options
| author | gingerBill <bill@gingerbill.org> | 2019-10-10 20:57:31 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-10-10 20:57:31 +0100 |
| commit | 8672ff1c55147a1b6f276b8e3f64d3d48eb0edf9 (patch) | |
| tree | 571b4221998fc4c85c5f8c3097836c88028193b8 /src/check_type.cpp | |
| parent | abfa8945661f24006e4f8506c1ec2861569228ec (diff) | |
Fix typo in System V ABI determination
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 89ee15666..672dee338 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -2105,7 +2105,7 @@ Type *type_to_abi_compat_param_type(gbAllocator a, Type *original_type, ProcCall case Type_Struct: { i64 align = type_align_of(original_type); i64 size = type_size_of(original_type); - if (8*size > 16) { + if (size > 16) { new_type = alloc_type_pointer(original_type); } else if (build_context.ODIN_ARCH == "amd64") { if (is_type_struct(bt)) { |