aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2006-08-10 10:35:27 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2006-08-10 10:35:27 +0000
commit22a8ed6556f9d57d93f43b60da5198136890f9c7 (patch)
treecf77d6e5d5488b7e4aabfd011d92f32c0d4428f9 /libstdc++-v3
parent3c95dcfdc2d82abb353997589f7c9c85e462657f (diff)
downloadgcc-22a8ed6556f9d57d93f43b60da5198136890f9c7.zip
gcc-22a8ed6556f9d57d93f43b60da5198136890f9c7.tar.gz
gcc-22a8ed6556f9d57d93f43b60da5198136890f9c7.tar.bz2
stl_bvector.h (_Bit_iterator_base::_M_incr(ptrdiff_t)): Tidy a bit, thus reducing generated code size.
2006-08-10 Paolo Carlini <pcarlini@suse.de> * include/bits/stl_bvector.h (_Bit_iterator_base::_M_incr(ptrdiff_t)): Tidy a bit, thus reducing generated code size. From-SVN: r116059
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/bits/stl_bvector.h5
2 files changed, 7 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 6fc3dba..2753d05 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-10 Paolo Carlini <pcarlini@suse.de>
+
+ * include/bits/stl_bvector.h (_Bit_iterator_base::_M_incr(ptrdiff_t)):
+ Tidy a bit, thus reducing generated code size.
+
2006-08-09 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_bvector.h (vector<bool>::_M_copy_aligned): New.
diff --git a/libstdc++-v3/include/bits/stl_bvector.h b/libstdc++-v3/include/bits/stl_bvector.h
index d728ce5..5d87bc5 100644
--- a/libstdc++-v3/include/bits/stl_bvector.h
+++ b/libstdc++-v3/include/bits/stl_bvector.h
@@ -144,11 +144,10 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD)
__n = __n % int(_S_word_bit);
if (__n < 0)
{
- _M_offset = static_cast<unsigned int>(__n + int(_S_word_bit));
+ __n += int(_S_word_bit);
--_M_p;
}
- else
- _M_offset = static_cast<unsigned int>(__n);
+ _M_offset = static_cast<unsigned int>(__n);
}
bool