You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2009/05/07 20:01:51 UTC

svn commit: r772730 - /stdcxx/branches/4.2.x/include/rw/_tree.cc

Author: faridz
Date: Thu May  7 18:01:51 2009
New Revision: 772730

URL: http://svn.apache.org/viewvc?rev=772730&view=rev
Log:
2009-05-07  Farid Zaripov  <fa...@apache.org>

	* include/rw/_tree.cc (erase): Fixed bug introduced in r731136.

Modified:
    stdcxx/branches/4.2.x/include/rw/_tree.cc

Modified: stdcxx/branches/4.2.x/include/rw/_tree.cc
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/include/rw/_tree.cc?rev=772730&r1=772729&r2=772730&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/include/rw/_tree.cc (original)
+++ stdcxx/branches/4.2.x/include/rw/_tree.cc Thu May  7 18:01:51 2009
@@ -846,8 +846,8 @@
         // return end()
         __tmp = end ();
     } else
-        for (__tmp = end (); !(__first == __last); __tmp = erase (__first))
-            ++__first;
+        for (__tmp = end (); !(__first == __last); )
+            __tmp = erase (__first++);
 
     return __tmp;
 }