aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorLaytan Laats <laytanlaats@hotmail.com>2024-05-02 11:27:40 +0200
committerLaytan Laats <laytanlaats@hotmail.com>2024-05-07 16:52:46 +0200
commit58c0abb98d50fa9f2cd1e0ab2ce255430f5d9253 (patch)
tree736046f10fac4f5aaa5536028b2fda8c25542020 /src/checker.cpp
parentd93cc18dacf7800972cab91053fc1ed3c68dd34b (diff)
revert wrong approach in fixing the load alignment
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 70ca4fc47..047017290 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -4315,7 +4315,7 @@ gb_internal bool correct_single_type_alias(CheckerContext *c, Entity *e) {
gb_internal bool correct_type_alias_in_scope_backwards(CheckerContext *c, Scope *s) {
bool correction = false;
- for (u32 n = s->elements.count, i = n-1; i < n; i--) {
+ for (u32 n = s->elements.capacity, i = n-1; i < n; i--) {
auto const &entry = s->elements.entries[i];
Entity *e = entry.value;
if (entry.hash && e != nullptr) {