aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-03-10 10:53:30 +0000
committergingerBill <bill@gingerbill.org>2021-03-10 10:53:30 +0000
commit4e2a2ac80a96115c51ec1bffa7a3c602bb0a1c2d (patch)
tree7728cde8858cbe8c933d0c86c31870b1e33bceae /src
parentd23c10d80ebde39545f393ab55908241b1b16f2d (diff)
Fix formatting of code
Diffstat (limited to 'src')
-rw-r--r--src/check_type.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp
index 2fbe4bcff..e6e12ab1b 100644
--- a/src/check_type.cpp
+++ b/src/check_type.cpp
@@ -2389,15 +2389,13 @@ Type *type_to_abi_compat_result_type(gbAllocator a, Type *original_type, ProcCal
}
if (cc == ProcCC_None) {
- for_array(i, new_type->Tuple.variables) {
- Type *result_type = new_type->Tuple.variables[i]->type;
- if (is_type_boolean(result_type)) {
- Type *t = core_type(base_type(result_type));
- if (t == t_bool) {
- new_type->Tuple.variables[i]->type = t_llvm_bool;
- }
- }
- }
+ for_array(i, new_type->Tuple.variables) {
+ Type **tp = &new_type->Tuple.variables[i]->type;
+ Type *t = core_type(*tp);
+ if (t == t_bool) {
+ *tp = t_llvm_bool;
+ }
+ }
}
new_type->cached_size = -1;