projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b12782
)
(convert): Handle conversion to complex type.
author
Richard Stallman
<rms@gnu.org>
Thu, 4 Mar 1993 19:42:13 +0000
(19:42 +0000)
committer
Richard Stallman
<rms@gnu.org>
Thu, 4 Mar 1993 19:42:13 +0000
(19:42 +0000)
From-SVN: r3640
gcc/c-convert.c
patch
|
blob
|
history
diff --git
a/gcc/c-convert.c
b/gcc/c-convert.c
index 55264732b9a00b6c996f419c7ab745d040d79166..cfa590cfa6c26334462ddd192a3ef2d34ecc77ec 100644
(file)
--- a/
gcc/c-convert.c
+++ b/
gcc/c-convert.c
@@
-87,6
+87,8
@@
convert (type, expr)
return fold (convert_to_pointer (type, e));
if (code == REAL_TYPE)
return fold (convert_to_real (type, e));
+ if (code == COMPLEX_TYPE)
+ return fold (convert_to_complex (type, e));
error ("conversion to non-scalar type requested");
return error_mark_node;