From d53e057f92fb74a6655f33388d2ffcbc7954489d Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Thu, 5 Apr 2012 13:42:49 -0500 Subject: Fix typos. --- indexlib/memvector.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'indexlib/memvector.h') diff --git a/indexlib/memvector.h b/indexlib/memvector.h index d4cc446ef..446fddf92 100644 --- a/indexlib/memvector.h +++ b/indexlib/memvector.h @@ -72,23 +72,23 @@ struct memory_iterator : public std::iterator(); + data_ += byte_io::byte_length(); return *this; } memory_iterator& operator --() { - data_ -= byte_io::byte_lenght(); + data_ -= byte_io::byte_length(); return *this; } memory_iterator& operator += ( ptrdiff_t dif ) { - data_ += dif * byte_io::byte_lenght(); + data_ += dif * byte_io::byte_length(); return *this; } ptrdiff_t operator - ( const memory_iterator& other ) const { - assert( !( ( raw() - other.raw() )%byte_io::byte_lenght() ) ); - return ( raw() - other.raw() )/byte_io::byte_lenght(); + assert( !( ( raw() - other.raw() )%byte_io::byte_length() ) ); + return ( raw() - other.raw() )/byte_io::byte_length(); } bool operator < ( const memory_iterator& other ) const { @@ -211,8 +211,8 @@ struct memvector { boost::scoped_ptr data_; unsigned char* address_of( unsigned i ) { return data_->rw_base( - byte_io::byte_lenght() + - i * byte_io::byte_lenght() ); + byte_io::byte_length() + + i * byte_io::byte_length() ); } const unsigned char* address_of( unsigned i ) const { return const_cast( this )->address_of( i ); -- cgit v1.2.1