1 --- src/core/CLucene/index/DocumentsWriterThreadState.cpp
2 +++ src/core/CLucene/index/DocumentsWriterThreadState.cpp
4 const TCHAR* tokenText = token->termBuffer();
5 const int32_t tokenTextLen = token->termLength();
11 int32_t downto = tokenTextLen;
13 const int32_t newMask = newSize-1;
15 ValueArray<Posting*> newHash(newSize);
16 - int32_t hashPos, code;
17 + int32_t hashPos; uint32_t code;
18 const TCHAR* pos = NULL;
19 const TCHAR* start = NULL;
21 --- src/core/CLucene/store/IndexInput.cpp
22 +++ src/core/CLucene/store/IndexInput.cpp
26 int64_t IndexInput::readLong() {
27 - int64_t i = ((int64_t)readInt() << 32);
28 - return (i | ((int64_t)readInt() & 0xFFFFFFFFL));
29 + uint64_t i = ((uint64_t)readInt() << 32);
30 + return (i | ((uint64_t)readInt() & 0xFFFFFFFFL));
33 int64_t IndexInput::readVLong() {