summaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-29 21:50:23 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-29 21:50:23 +0000
commit040ef84cfb83fd3de22a0375895e04b509903b9b (patch)
tree71acb4d5ef64bd78787e65732341647c635accc9 /libstdc++-v3
parent746443a21eea798e782daa29d8c0a9e8b0d30f93 (diff)
downloadgcc-040ef84cfb83fd3de22a0375895e04b509903b9b.tar.gz
2006-10-29 Paolo Carlini <pcarlini@suse.de>
* src/debug.cc (_Safe_sequence_base::_M_revalidate_singular): Fix pasto, advance __iter only once per iteration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118159 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/src/debug.cc23
2 files changed, 14 insertions, 14 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index a6a05895899..ce61055d8b7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,4 +1,9 @@
2006-10-29 Paolo Carlini <pcarlini@suse.de>
+
+ * src/debug.cc (_Safe_sequence_base::_M_revalidate_singular): Fix
+ pasto, advance __iter only once per iteration.
+
+2006-10-29 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/29520
* include/tr1/random (geometric_distribution<>::
diff --git a/libstdc++-v3/src/debug.cc b/libstdc++-v3/src/debug.cc
index c43acd6e727..46c6c14810f 100644
--- a/libstdc++-v3/src/debug.cc
+++ b/libstdc++-v3/src/debug.cc
@@ -146,23 +146,18 @@ namespace __gnu_debug
__old->_M_attach(0, true);
}
}
-
- void
+
+ void
_Safe_sequence_base::
_M_revalidate_singular()
{
- _Safe_iterator_base* __iter;
- for (__iter = _M_iterators; __iter; __iter = __iter->_M_next)
- {
- __iter->_M_version = _M_version;
- __iter = __iter->_M_next;
- }
-
- for (__iter = _M_const_iterators; __iter; __iter = __iter->_M_next)
- {
- __iter->_M_version = _M_version;
- __iter = __iter->_M_next;
- }
+ for (_Safe_iterator_base* __iter = _M_iterators; __iter;
+ __iter = __iter->_M_next)
+ __iter->_M_version = _M_version;
+
+ for (_Safe_iterator_base* __iter2 = _M_const_iterators; __iter2;
+ __iter2 = __iter2->_M_next)
+ __iter2->_M_version = _M_version;
}
void