mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 00:49:49 +08:00
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
This commit is contained in:
parent
37b157440f
commit
90e420bd60
@ -1,3 +1,7 @@
|
||||
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>
|
||||
<kainz@ilm.com>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// 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
|
||||
// software; you can redistribute it and/or modify it under the
|
||||
@ -464,7 +464,7 @@ namespace std
|
||||
}
|
||||
else
|
||||
{
|
||||
_Tp __t = sqrt( 2 * abs(__z) + abs(__x));
|
||||
_Tp __t = sqrt(2 * (abs(__z) + abs(__x)));
|
||||
_Tp __u = __t / 2;
|
||||
return __x > _Tp()
|
||||
? complex<_Tp>(__u, __y / __t)
|
||||
|
Loading…
Reference in New Issue
Block a user