aboutsummaryrefslogtreecommitdiff
path: root/type.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-05-15 23:48:29 -0700
committerMichael Forney <mforney@mforney.org>2019-05-16 00:33:57 -0700
commita813137236b2c51de81dff3a869887f1b91cebee (patch)
treee3f7fa1a8e8da76fd7a538ad7123eee5b468b52a /type.c
parentb530731adbf3a8ebdde77bd61fca3593e9f00896 (diff)
Remove incorrect type equality check in usual arithmetic conversions
Integer types still undergo integer promotions even if they are the same type.
Diffstat (limited to 'type.c')
-rw-r--r--type.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/type.c b/type.c
index 4b5b665..8add5d0 100644
--- a/type.c
+++ b/type.c
@@ -204,8 +204,6 @@ typecommonreal(struct type *t1, unsigned w1, struct type *t2, unsigned w2)
struct type *tmp;
assert(t1->prop & PROPREAL && t2->prop & PROPREAL);
- if (t1 == t2)
- return t1;
if (t1 == &typeldouble || t2 == &typeldouble)
return &typeldouble;
if (t1 == &typedouble || t2 == &typedouble)