Skip to content
Snippets Groups Projects
Commit eb030b26 authored by paolo's avatar paolo
Browse files

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
parent a6b3b25c
No related branches found
No related tags found
No related merge requests found
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,
......
// 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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment