projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46ef2e5
)
Correctly handle qualified floats in get_default_promoted_type().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 23 Dec 2008 12:00:17 +0000
(12:00 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 23 Dec 2008 12:00:17 +0000
(12:00 +0000)
[r24857]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
808f750
..
7e83425
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-5476,7
+5476,7
@@
static type_t *get_default_promoted_type(type_t *orig_type)
type_t *type = skip_typeref(orig_type);
if (is_type_integer(type)) {
result = promote_integer(type);
- } else if (
type == type_float
) {
+ } else if (
is_type_atomic(type, ATOMIC_TYPE_FLOAT)
) {
result = type_double;
}