This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] Fix typo in recent commit
- From: Paolo Carlini <pcarlini at suse dot de>
- To: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 15 Jan 2007 17:50:51 +0100
- Subject: [v3] Fix typo in recent commit
Hi,
tested x86-linux, committed mainline and 4_2-branch.
Paolo.
////////////////
2007-01-15 Paolo Carlini <pcarlini@suse.de>
* include/std/valarray (valarray<>::cshift): Fix typo.
Index: valarray
===================================================================
--- valarray (revision 120776)
+++ valarray (working copy)
@@ -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 @@
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);