Commit 90e420bd by Peter Schmid Committed by Benjamin Kosnik

std_complex.h: Fix a typo.


2001-01-10  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

         * include/bits/std_complex.h: Fix a typo.

From-SVN: r38878
parent 37b15744
2001-01-10 Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
* include/bits/std_complex.h: Fix a typo.
2001-01-09 Benjamin Kosnik <bkoz@redhat.com> 2001-01-09 Benjamin Kosnik <bkoz@redhat.com>
<kainz@ilm.com> <kainz@ilm.com>
......
// The template and inlines for the -*- C++ -*- complex number classes. // The template and inlines for the -*- C++ -*- complex number classes.
// Copyright (C) 1997-1999, 2000 Free Software Foundation, Inc. // Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
// //
// This file is part of the GNU ISO C++ Library. This library is free // This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the // software; you can redistribute it and/or modify it under the
...@@ -464,7 +464,7 @@ namespace std ...@@ -464,7 +464,7 @@ namespace std
} }
else else
{ {
_Tp __t = sqrt( 2 * abs(__z) + abs(__x)); _Tp __t = sqrt(2 * (abs(__z) + abs(__x)));
_Tp __u = __t / 2; _Tp __u = __t / 2;
return __x > _Tp() return __x > _Tp()
? complex<_Tp>(__u, __y / __t) ? complex<_Tp>(__u, __y / __t)
......
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