Remove redundant test from is_type_real() (is_type_float() checks this, too).
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 15 Sep 2008 19:21:21 +0000 (19:21 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 15 Sep 2008 19:21:21 +0000 (19:21 +0000)
[r21982]

type.c

diff --git a/type.c b/type.c
index 3c6bed6..b05492a 100644 (file)
--- a/type.c
+++ b/type.c
@@ -933,9 +933,8 @@ bool is_type_arithmetic(const type_t *type)
  */
 bool is_type_real(const type_t *type)
 {
-       /* 6.2.5.17 */
-       return is_type_integer(type)
-               || (type->kind == TYPE_ATOMIC && is_type_float(type));
+       /* 6.2.5 (17) */
+       return is_type_integer(type) || is_type_float(type);
 }
 
 /**