Permalink
Browse files

Fix bug where == was used instead of type_eq

  • Loading branch information...
1 parent b87d15c commit 46762279e20027653bfb8906ef5cf1395b9c2e66 @nickg committed Aug 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/sem.c
View
@@ -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;
}

0 comments on commit 4676227

Please sign in to comment.