]> Cypherpunks repositories - gostls13.git/commitdiff
Revert previous change: complexN only converts to complexN.
authorIan Lance Taylor <iant@golang.org>
Thu, 11 Mar 2010 04:38:38 +0000 (20:38 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 11 Mar 2010 04:38:38 +0000 (20:38 -0800)
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

doc/go_spec.html

index 0778d73fc96c9e400eefc7f7fdeab7357407affd..83d9f90e412dd4a8565dcc1545ac82d7d79f725f 100644 (file)
@@ -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