fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / clucene / patches / clucene-ub.patch
blobe1ca3131f301be6113b79cdf3cf53aff69292a77
1 --- src/core/CLucene/index/DocumentsWriterThreadState.cpp
2 +++ src/core/CLucene/index/DocumentsWriterThreadState.cpp
3 @@ -994,7 +994,7 @@
4 const TCHAR* tokenText = token->termBuffer();
5 const int32_t tokenTextLen = token->termLength();
7 - int32_t code = 0;
8 + uint32_t code = 0;
10 // Compute hashcode
11 int32_t downto = tokenTextLen;
12 @@ -1203,7 +1203,7 @@
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;
20 Posting* p0;
21 --- src/core/CLucene/store/IndexInput.cpp
22 +++ src/core/CLucene/store/IndexInput.cpp
23 @@ -41,8 +41,8 @@
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() {