diff options
author | Michael Forney <mforney@mforney.org> | 2019-05-15 23:48:29 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-05-16 00:33:57 -0700 |
commit | a813137236b2c51de81dff3a869887f1b91cebee (patch) | |
tree | e3f7fa1a8e8da76fd7a538ad7123eee5b468b52a /type.c | |
parent | b530731adbf3a8ebdde77bd61fca3593e9f00896 (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.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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) |