1999-09017 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
authorGabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
Fri, 17 Sep 1999 15:19:20 +0000 (15:19 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Fri, 17 Sep 1999 15:19:20 +0000 (15:19 +0000)
        * std/valarray_array.h (__valarray_copy): Fix typo.

From-SVN: r29476

libstdc++/ChangeLog
libstdc++/std/valarray_array.h

index 731c2a59c7388f7205a16c242ed59dea332dd404..e0b750c921f5447b95b1fbff6296394b86db6cac 100644 (file)
@@ -1,3 +1,7 @@
+1999-09017 Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
+
+       * std/valarray_array.h (__valarray_copy): Fix typo.
+
 1999-09-17 Gabriel Dos Reis  <dosreis@cmla.ens-cachan.fr>
 
        * std/complext.cc (pow): Don't expect floating point promotion
index f711e52a1650e7088f868adf331600fa024c861e..a0b5818fd8b06c19c187471325e89b205dd1eede 100644 (file)
@@ -73,7 +73,7 @@ template<typename _Tp>
 inline void
 __valarray_copy (const _Tp* __restrict__ __a, size_t __n, size_t __s,
                  _Tp* __restrict__ __b)
-{ for (size_t __i=0; __i<__n; ++__i, ++__b, __a += __s) *__b += *__a; }
+{ for (size_t __i=0; __i<__n; ++__i, ++__b, __a += __s) *__b = *__a; }
 
 // copy plain __a[<__n>] in strided __b[<__n : __s>]
 template<typename _Tp>