aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>2001-01-10 20:55:03 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2001-01-10 20:55:03 +0000
commit90e420bd6058c607e398f48fe81792ca40449a16 (patch)
tree322cf91fb52df9c09d9224f669ce2f649fd50005
parent37b157440f7843845adaa98df765d4ab824b4437 (diff)
downloadgcc-90e420bd6058c607e398f48fe81792ca40449a16.zip
gcc-90e420bd6058c607e398f48fe81792ca40449a16.tar.gz
gcc-90e420bd6058c607e398f48fe81792ca40449a16.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/bits/std_complex.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 1b41104..8086098 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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>
diff --git a/libstdc++-v3/include/bits/std_complex.h b/libstdc++-v3/include/bits/std_complex.h
index 92a5223..1cc836e 100644
--- a/libstdc++-v3/include/bits/std_complex.h
+++ b/libstdc++-v3/include/bits/std_complex.h
@@ -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)