summaryrefslogtreecommitdiffstats
path: root/indexlib/leafdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indexlib/leafdata.cpp')
-rw-r--r--indexlib/leafdata.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indexlib/leafdata.cpp b/indexlib/leafdata.cpp
index 70773330a..db61119af 100644
--- a/indexlib/leafdata.cpp
+++ b/indexlib/leafdata.cpp
@@ -50,7 +50,7 @@ uint32_t leaf_data::get_reference( unsigned idx ) const {
}
bool leaf_data::can_add( uint32_t ref ) const {
- if ( ( capacity() - usedbytes() ) > ( 1 + byte_io::byte_lenght<uint32_t>() ) ) return true;
+ if ( ( capacity() - usedbytes() ) > ( 1 + byte_io::byte_length<uint32_t>() ) ) return true;
if ( capacity() == usedbytes() ) return false;
uint32_t last = 0;
for ( iterator first = begin(), past = end(); first != past; ++first ) {
@@ -97,7 +97,7 @@ void leaf_data::add_reference( uint32_t ref ) {
} else {
*target++ = 0;
byte_io::write<uint32_t>( target, ref );
- set_usedbytes( usedbytes() + 1 + byte_io::byte_lenght<uint32_t>() );
+ set_usedbytes( usedbytes() + 1 + byte_io::byte_length<uint32_t>() );
}
assert( usedbytes() <= capacity() );
}
@@ -123,7 +123,7 @@ void leaf_data::remove_reference( uint32_t ref ) {
else {
++iter;
byte_io::write<uint32_t>(iter,byte_io::read<uint32_t>(iter)-1);
- iter += byte_io::byte_lenght<uint32_t>();
+ iter += byte_io::byte_length<uint32_t>();
}
}
}