projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d85a045
)
Removed superflous computations, these are done later again.
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 28 Jan 2011 01:06:19 +0000
(
01:06
+0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Fri, 28 Jan 2011 01:06:19 +0000
(
01:06
+0000)
[r28275]
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
e0a7cc4
..
987c222
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-7697,13
+7697,6
@@
end_error:;
} else if (is_type_arithmetic(true_type)
&& is_type_arithmetic(false_type)) {
result_type = semantic_arithmetic(true_type, false_type);
} else if (is_type_arithmetic(true_type)
&& is_type_arithmetic(false_type)) {
result_type = semantic_arithmetic(true_type, false_type);
-
- true_expression = create_implicit_cast(true_expression, result_type);
- false_expression = create_implicit_cast(false_expression, result_type);
-
- conditional->true_expression = true_expression;
- conditional->false_expression = false_expression;
- conditional->base.type = result_type;
} else if (same_compound_type(true_type, false_type)) {
/* just take 1 of the 2 types */
result_type = true_type;
} else if (same_compound_type(true_type, false_type)) {
/* just take 1 of the 2 types */
result_type = true_type;