diff options
author | Andreas Rumpf <andreas@andreas-laptop> | 2010-04-04 18:43:57 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-laptop> | 2010-04-04 18:43:57 +0200 |
commit | b2ad7b30dc5866a92e239acfd6032e5fb005a240 (patch) | |
tree | 9bd3fd86c200c45e3c08c27b1a215408752af48e /lib/pure/complex.nim | |
parent | f530bbd6315f21469d7479991186e88302608726 (diff) | |
download | Nim-b2ad7b30dc5866a92e239acfd6032e5fb005a240.tar.gz |
bugfix: complex.nim compiles
Diffstat (limited to 'lib/pure/complex.nim')
-rwxr-xr-x | lib/pure/complex.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/complex.nim b/lib/pure/complex.nim index f597a09e1..c06451ca8 100755 --- a/lib/pure/complex.nim +++ b/lib/pure/complex.nim @@ -1,7 +1,7 @@ # # # Nimrod's Runtime Library -# (c) Copyright 2006 Andreas Rumpf +# (c) Copyright 2010 Andreas Rumpf # # See the file "copying.txt", included in this # distribution, for details about the copyright. @@ -101,6 +101,6 @@ proc sqrt*(z: TComplex): TComplex = else: if z.im >= 0.0: result.im = w else: result.im = -w - result.re = z.im / (c.im + c.im) + result.re = z.im / (result.im + result.im) {.pop.} |