Skip to content

Commit

Permalink
Fix bug where == was used instead of type_eq
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Aug 27, 2012
1 parent b87d15c commit 4676227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sem.c
Expand Up @@ -2341,7 +2341,7 @@ static bool sem_check_fcall(tree_t t)
// table under different names
bool duplicate = false;
for (int i = 0; i < n_overloads; i++) {
if (overloads[i] == decl)
if (type_eq(tree_type(overloads[i]), func_type))
duplicate = true;
}

Expand Down

0 comments on commit 4676227

Please sign in to comment.