This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[Patch] trivial fix for sin(const complex<_Tp>& __z)
- From: Jan van Dijk <jan at etpmod dot phys dot tue dot nl>
- To: libstdc++ at gcc dot gnu dot org
- Date: Wed, 9 Jun 2004 20:17:10 +0200
- Subject: [Patch] trivial fix for sin(const complex<_Tp>& __z)
- Organization: TU/Eindhoven
- Reply-to: jan at etpmod dot phys dot tue dot nl
The following one-liner fixes the function
sin(const complex<_Tp>& __z): the 'return' statement was missing.
A Changelog entry has been included.
Regards,
Jan van Dijk.
Index: libstdc++-v3/ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/ChangeLog,v
retrieving revision 1.2507
diff -c -3 -p -r1.2507 ChangeLog
*** libstdc++-v3/ChangeLog 9 Jun 2004 07:25:25 -0000 1.2507
--- libstdc++-v3/ChangeLog 9 Jun 2004 17:29:25 -0000
***************
*** 1,3 ****
--- 1,7 ----
+ 2004-06-09 Jan van Dijk <jan@etpmod.phys.tue.nl>
+ * include/std/std_complex.h (sin(const complex<_Tp>& __z)): Make
+ this function return a value.
+
2004-06-09 Benjamin Kosnik <bkoz@redhat.com>
* crossconfig.m4: Remove signbit, signbitf, signbitl.
Index: libstdc++-v3/include/std/std_complex.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/std/std_complex.h,v
retrieving revision 1.16
diff -c -3 -p -r1.16 std_complex.h
*** libstdc++-v3/include/std/std_complex.h 2 Jun 2004 21:04:07 -0000 1.16
--- libstdc++-v3/include/std/std_complex.h 9 Jun 2004 17:29:26 -0000
*************** namespace std
*** 768,774 ****
template<typename _Tp>
inline complex<_Tp>
! sin(const complex<_Tp>& __z) { __complex_sin(__z.__rep()); }
// 26.2.8/11 sinh(__z): Returns the hyperbolic sine of __z.
template<typename _Tp>
--- 768,774 ----
template<typename _Tp>
inline complex<_Tp>
! sin(const complex<_Tp>& __z) { return __complex_sin(__z.__rep()); }
// 26.2.8/11 sinh(__z): Returns the hyperbolic sine of __z.
template<typename _Tp>