OSDN Git Service

1999-09017 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 1999 15:19:20 +0000 (15:19 +0000)
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Sep 1999 15:19:20 +0000 (15:19 +0000)
        * std/valarray_array.h (__valarray_copy): Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29476 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 731c2a5..e0b750c 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 f711e52..a0b5818 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>