From 20c1d70fa5c87356bd95b8ac34ae12b8da31ab58 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 1 Mar 2013 09:27:02 +0100 Subject: MinGW: Workaround narrowing conversion in clucene. Change-Id: I921d8140ecdf577687571a9aeca3100023f390d4 --- clucene/patches/clucene-narrowing-conversions.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'clucene') 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); -- cgit