This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch] trivial fix for sin(const complex<_Tp>& __z)


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]