aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2026-02-02 11:40:30 +0000
committergingerBill <gingerBill@users.noreply.github.com>2026-02-02 11:40:30 +0000
commit8594deb4e1f0c75fdcf5e0351e193f2d9e267b5f (patch)
tree62415e07d0c26867640f62ea6e367e36b31b30ea
parent2bbedda61c91eca763b4ef07e889c12372c66560 (diff)
Move `return true;` to after the if check
-rw-r--r--src/types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.cpp b/src/types.cpp
index 9ecdf5cdd..fa4aa8730 100644
--- a/src/types.cpp
+++ b/src/types.cpp
@@ -4317,8 +4317,8 @@ gb_internal bool type_set_offsets(Type *t) {
t->Struct.offsets = type_set_offsets_of(t->Struct.fields, t->Struct.is_packed, t->Struct.is_raw_union, t->Struct.custom_min_field_align, t->Struct.custom_max_field_align);
t->Struct.are_offsets_being_processed.store(false);
t->Struct.are_offsets_set = true;
- return true;
}
+ return true;
} else if (is_type_tuple(t)) {
MUTEX_GUARD(&t->Tuple.mutex);
if (!t->Tuple.are_offsets_set) {
@@ -4326,8 +4326,8 @@ gb_internal bool type_set_offsets(Type *t) {
t->Tuple.offsets = type_set_offsets_of(t->Tuple.variables, t->Tuple.is_packed, false, 1, 0);
t->Tuple.are_offsets_being_processed.store(false);
t->Tuple.are_offsets_set = true;
- return true;
}
+ return true;
} else {
GB_PANIC("Invalid type for setting offsets");
}