pat_trie_base.hpp: Avoid -Wall warning.
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 22 Jun 2011 22:28:56 +0000 (22:28 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 22 Jun 2011 22:28:56 +0000 (22:28 +0000)
2011-06-22  Paolo Carlini  <paolo.carlini@oracle.com>

* include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall
warning.

From-SVN: r175321

libstdc++-v3/ChangeLog
libstdc++-v3/include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp

index 97e0b3764a353148d6f9fa3129a7e69f728f8c15..7cbae95f394b3d0363127cfcbafe4a04129914ab 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-22  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/ext/pb_ds/detail/pat_trie_/pat_trie_base.hpp: Avoid -Wall
+       warning.
+
 2011-06-22  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * testsuite/20_util/reference_wrapper/invoke.cc: Avoid -Wall warnings.
index f5326e944fb0d8d6d5a5f0b2911e076a594a191b..b7eb024c07fa12098d9b050e2684fff17df9a732 100644 (file)
@@ -1318,7 +1318,7 @@ namespace __gnu_pbds
     get_begin_pos() const
     {
       size_type i = 0;
-      for (i; i < arr_size && m_a_p_children[i] == 0; ++i)
+      for (; i < arr_size && m_a_p_children[i] == 0; ++i)
        ;
       return i;
     }