summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-15 16:45:01 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-15 16:45:01 +0000
commiteb030b261e9b68854ad8abfb5e45c7e3e70d93ff (patch)
treebcbe0cda68f030f46ae2693666231d8c0c594724
parenta6b3b25c2899cc3130325bea05dcd14e227ec876 (diff)
downloadgcc-eb030b261e9b68854ad8abfb5e45c7e3e70d93ff.tar.gz
2007-01-15 Paolo Carlini <pcarlini@suse.de>
* include/std/valarray (valarray<>::cshift): Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120798 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/std/valarray4
2 files changed, 6 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 75cea57a65b..2a4383c260c 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-15 Paolo Carlini <pcarlini@suse.de>
+
+ * include/std/valarray (valarray<>::cshift): Fix typo.
+
2007-01-14 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algobase.h (fill_n(char*, _Size,
diff --git a/libstdc++-v3/include/std/valarray b/libstdc++-v3/include/std/valarray
index 6c828b68517..87f30ec4e02 100644
--- a/libstdc++-v3/include/std/valarray
+++ b/libstdc++-v3/include/std/valarray
@@ -1,6 +1,6 @@
// The template and inlines for the -*- C++ -*- valarray class.
-// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007
// Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
@@ -847,7 +847,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
else // cshift right
{
if (size_t(-__n) > _M_size)
- __n = -(-__n % _M_size);
+ __n = -(size_t(-__n) % _M_size);
std::__valarray_copy_construct(_M_data + _M_size + __n,
_M_data + _M_size, __tmp_M_data);