mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-15 18:32:22 -07:00
Replace compiler for loops for the hash-table types to simplify code usage
This commit is contained in:
+2
-2
@@ -1791,8 +1791,8 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is
|
||||
|
||||
isize specialization_count = 0;
|
||||
if (scope != nullptr) {
|
||||
for_array(i, scope->elements.entries) {
|
||||
Entity *e = scope->elements.entries[i].value;
|
||||
for (auto const &entry : scope->elements) {
|
||||
Entity *e = entry.value;
|
||||
if (e->kind == Entity_TypeName) {
|
||||
Type *t = e->type;
|
||||
if (t->kind == Type_Generic &&
|
||||
|
||||
Reference in New Issue
Block a user