This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libstdc++-v3] Typo in std_complex.h, patch included
- To: libstdc++ at gcc dot gnu dot org
- Subject: [libstdc++-v3] Typo in std_complex.h, patch included
- From: Peter Schmid <schmid at snake dot iap dot physik dot tu-darmstadt dot de>
- Date: Tue, 9 Jan 2001 18:06:39 +0100 (CET)
- cc: gcc-patches at gcc dot gnu dot org
I believe there is a typo in line 507 of std_complex.h in fuction
template<typename _Tp> inline complex<_Tp> pow(const complex<_Tp>&
__x, const complex<_Tp>& __y). The line should read return exp(__y *
log(__x)); instead of return exp(__x * log(__x));.
The following simple patch fixes the problem.
*** /home/peter/egcs/gcc/libstdc++-v3/ChangeLog~ Tue Jan 9 18:03:40 2001
--- /home/peter/egcs/gcc/libstdc++-v3/ChangeLog Tue Jan 9 18:03:47 2001
***************
*** 1,3 ****
--- 1,6 ----
+ 2001-01-09 Peter Schmid<schmid@snake.iap.physik.tu-darmstadt.de>
+ * include/bits/std_complex.h: Fix a typo.
+
2001-01-05 Benjamin Kosnik <bkoz@redhat.com>
Fix 27_io/filebuf_members.cc
*** /home/peter/egcs/gcc/libstdc++-v3/include/bits/std_complex.h~ Tue Jan 9 17:59:05 2001
--- /home/peter/egcs/gcc/libstdc++-v3/include/bits/std_complex.h Tue Jan 9 17:54:48 2001
*************** namespace std
*** 504,510 ****
inline complex<_Tp>
pow(const complex<_Tp>& __x, const complex<_Tp>& __y)
{
! return exp(__x * log(__x));
}
template<typename _Tp>
--- 504,510 ----
inline complex<_Tp>
pow(const complex<_Tp>& __x, const complex<_Tp>& __y)
{
! return exp(__y * log(__x));
}
template<typename _Tp>