projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be6fb98
)
Remove redundant test from is_type_real() (is_type_float() checks this, too).
author
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 15 Sep 2008 19:21:21 +0000
(19:21 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Mon, 15 Sep 2008 19:21:21 +0000
(19:21 +0000)
[r21982]
type.c
patch
|
blob
|
history
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);
}
/**