summaryrefslogtreecommitdiffstats
path: root/indexlib
diff options
context:
space:
mode:
Diffstat (limited to 'indexlib')
-rw-r--r--indexlib/memvector.tcc8
1 files changed, 4 insertions, 4 deletions
diff --git a/indexlib/memvector.tcc b/indexlib/memvector.tcc
index ef45c2b5f..792c389c3 100644
--- a/indexlib/memvector.tcc
+++ b/indexlib/memvector.tcc
@@ -30,13 +30,13 @@ template <typename T>
void memvector<T>::resize( size_type n_s ) {
if ( size() >= n_s ) return;
- data_->resize( n_s * byte_io::byte_lenght<value_type>() + byte_io::byte_lenght<unsigned>() );
+ using namespace byte_io;
+ data_->resize( n_s * byte_lenght<value_type>() + byte_lenght<unsigned>() );
iterator p_end = end();
- byte_io::write<unsigned>( data_->rw_base( 0 ), n_s );
- while ( operator !=<unsigned, unsigned>(p_end, end()) ) {
+ write<unsigned>( data_->rw_base( 0 ), n_s );
+ while ( p_end != end() ) {
*p_end = value_type();
++p_end;
-
}
}