From 2c1a26bd700d5127a243f21af2008a1af4e1b5f7 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 23 Dec 2012 11:22:51 +0100 Subject: [PATCH] type_hash: The error type is equal to itself. --- type_hash.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/type_hash.c b/type_hash.c index 8354011..d170bb6 100644 --- 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: -- 2.20.1