From 80d789a4d59ab93b9202cd458522e4a5506866aa Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Fri, 17 Sep 1999 15:19:20 +0000 Subject: [PATCH] 1999-09017 Gabriel Dos Reis * std/valarray_array.h (__valarray_copy): Fix typo. From-SVN: r29476 --- libstdc++/ChangeLog | 4 ++++ libstdc++/std/valarray_array.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog index 731c2a59c73..e0b750c921f 100644 --- a/libstdc++/ChangeLog +++ b/libstdc++/ChangeLog @@ -1,3 +1,7 @@ +1999-09017 Gabriel Dos Reis + + * std/valarray_array.h (__valarray_copy): Fix typo. + 1999-09-17 Gabriel Dos Reis * std/complext.cc (pow): Don't expect floating point promotion diff --git a/libstdc++/std/valarray_array.h b/libstdc++/std/valarray_array.h index f711e52a165..a0b5818fd8b 100644 --- a/libstdc++/std/valarray_array.h +++ b/libstdc++/std/valarray_array.h @@ -73,7 +73,7 @@ template 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