projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b062e5
)
type_hash: The error type is equal to itself.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Sun, 23 Dec 2012 10:22:51 +0000
(11:22 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Thu, 27 Dec 2012 11:56:08 +0000
(12:56 +0100)
type_hash.c
patch
|
blob
|
history
diff --git
a/type_hash.c
b/type_hash.c
index
8354011
..
d170bb6
100644
(file)
--- a/
type_hash.c
+++ b/
type_hash.c
@@
-246,8
+246,7
@@
static bool types_equal(const type_t *type1, const type_t *type2)
switch (type1->kind) {
case TYPE_ERROR:
- /* Hmm, the error type is never equal */
- return false;
+ return true;
case TYPE_ATOMIC:
case TYPE_IMAGINARY:
case TYPE_COMPLEX: