diff options
author | Jan Holesovsky <kendy@suse.cz> | 2013-03-01 09:27:02 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-03-01 10:53:41 +0100 |
commit | 20c1d70fa5c87356bd95b8ac34ae12b8da31ab58 (patch) | |
tree | e6ea0c5d78d992e8091fe9b3fe51ef6ed4afef25 /clucene | |
parent | 52efa22867b6201a3d97180bfb76e4c780e923a2 (diff) |
MinGW: Workaround narrowing conversion in clucene.
Change-Id: I921d8140ecdf577687571a9aeca3100023f390d4
Diffstat (limited to 'clucene')
-rw-r--r-- | clucene/patches/clucene-narrowing-conversions.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clucene/patches/clucene-narrowing-conversions.patch b/clucene/patches/clucene-narrowing-conversions.patch index f0e971c55dd9..64065acb1650 100644 --- a/clucene/patches/clucene-narrowing-conversions.patch +++ b/clucene/patches/clucene-narrowing-conversions.patch @@ -23,3 +23,14 @@ }; const int32_t QueryParserTokenManager::jjnextStates[]={ 15, 17, 18, 29, 32, 23, 33, 30, 20, 21, 32, 23, 33, 31, 34, 27, +--- src/core/CLucene/queryParser/legacy/Lexer.cpp.sav 2013-03-01 09:25:18.000000000 +0100 ++++ src/core/CLucene/queryParser/legacy/Lexer.cpp 09:25:12.000000000 +0100 +@@ -117,7 +117,7 @@ bool Lexer::GetNextToken(QueryToken* tok + if( _istspace(ch)!=0 ) { + continue; + } +- TCHAR buf[2] = {ch,'\0'}; ++ TCHAR buf[2] = {TCHAR(ch),'\0'}; + switch(ch) { + case '+': + token->set(buf, QueryToken::PLUS); |