Commit 11a21844 authored by Ian Lance Taylor's avatar Ian Lance Taylor

Revert previous change: complexN only converts to complexN.

This was discussed with Ken and Russ.  6g has been changed,
and both compilers now work this way.  This avoids a double
type conversion--first to the float type, then to the complex
type.

R=r
CC=golang-dev, ken2, rsc
https://golang.org/cl/419042
parent 2a621951
......@@ -3262,7 +3262,7 @@ When converting a floating-point number to an integer, the fraction is discarded
</li>
<li>
A value of complex type may be converted to a different complex type,
but there is no conversion from complex to any other type.
but there is no conversion between complex and any other type.
<li>
When converting a number to a floating-point or complex type,
the result value is rounded
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment