home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / patches / gcc-2_95_2-x86-win32-patches.zi / gcc-2.95.2-patches / broken-down / gcc-2.95.2-valarray.diff < prev    next >
Encoding:
Text File  |  1999-11-08  |  1.7 KB  |  41 lines

  1. 1999-10-19  Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
  2.  
  3.     * std/valarray_meta.h: (_BinClos::_BinClos): Fix typo.
  4.  
  5. 1999-090-17 Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
  6.  
  7.     * std/valarray_array.h (__valarray_copy): Fix typo.
  8.  
  9. Index: gcc-2.95.2/libstdc++/std/valarray_array.h
  10. ===================================================================
  11. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/libstdc++/std/valarray_array.h,v
  12. retrieving revision 1.1.1.1
  13. diff -u -3 -p -r1.1.1.1 valarray_array.h
  14. --- gcc-2.95.2/libstdc++/std/valarray_array.h    1999/11/05 01:10:20    1.1.1.1
  15. +++ gcc-2.95.2/libstdc++/std/valarray_array.h    1999/11/05 09:20:54
  16. @@ -73,7 +73,7 @@ template<typename _Tp>
  17.  inline void
  18.  __valarray_copy (const _Tp* __restrict__ __a, size_t __n, size_t __s,
  19.                   _Tp* __restrict__ __b)
  20. -{ for (size_t __i=0; __i<__n; ++__i, ++__b, __a += __s) *__b += *__a; }
  21. +{ for (size_t __i=0; __i<__n; ++__i, ++__b, __a += __s) *__b = *__a; }
  22.  
  23.  // copy plain __a[<__n>] in strided __b[<__n : __s>]
  24.  template<typename _Tp>
  25. Index: gcc-2.95.2/libstdc++/std/valarray_meta.h
  26. ===================================================================
  27. RCS file: /homes/khan/src/CVSROOT/gcc-2.95.2/libstdc++/std/valarray_meta.h,v
  28. retrieving revision 1.1.1.1
  29. diff -u -3 -p -r1.1.1.1 valarray_meta.h
  30. --- gcc-2.95.2/libstdc++/std/valarray_meta.h    1999/11/05 01:10:20    1.1.1.1
  31. +++ gcc-2.95.2/libstdc++/std/valarray_meta.h    1999/11/05 09:20:54
  32. @@ -449,7 +449,7 @@ struct  _BinClos<_Oper,_ValArray,_Expr,t
  33.      typedef _BinBase<_Oper,valarray<_Tp>,_Dom> _Base;
  34.      typedef typename _Base::value_type value_type;
  35.      
  36. -    _BinClos (const valarray<_Tp> __e1, const _Dom& __e2)
  37. +    _BinClos (const valarray<_Tp>& __e1, const _Dom& __e2)
  38.              : _Base (__e1, __e2) {}
  39.  };
  40.  
  41.