Skip to content

Commit cbf7074

Browse files
authored
Merge pull request #216 from Johnson-zs/fix_bug_0
Fix typo in MAX_VARINT32_LENGTH constant in BufferedIndexInput.cpp
2 parents c5df275 + a07f208 commit cbf7074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/store/BufferedIndexInput.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ uint8_t BufferedIndexInput::readByte() {
3232
return __buffer[bufferPosition++];
3333
}
3434

35-
static const int MAX_VARINT32_LENGHT = 5;
35+
static const int MAX_VARINT32_LENGTH = 5;
3636

3737
int32_t BufferedIndexInput::readVInt() {
38-
if (bufferPosition + MAX_VARINT32_LENGHT < bufferLength) {
38+
if (bufferPosition + MAX_VARINT32_LENGTH < bufferLength) {
3939
uint8_t b = __buffer[bufferPosition++];
4040
int32_t i = (b & 0x7f);
4141
for (int32_t shift = 7; (b & 0x80) != 0; shift += 7) {

0 commit comments

Comments
 (0)