From: Jonathan Liu Date: Tue, 4 Sep 2012 11:49:57 +0000 (+1000) Subject: Fix narrowing conversion compile error X-Git-Tag: accepted/tizen/20131212.181521~240 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ad88ee03762bf3a0a398da7c5373bd1b9c1cfe7;p=platform%2Fupstream%2Fqttools.git Fix narrowing conversion compile error Explicitly specify conversion from int to TCHAR to avoid a narrowing conversion compile error when compiling with GCC option -std=c++0x. Change-Id: I15d71502e4fd51f85adf7d3fc1c83cf135c4b420 Reviewed-by: Thiago Macieira --- diff --git a/src/assistant/3rdparty/clucene/src/CLucene/queryParser/Lexer.cpp b/src/assistant/3rdparty/clucene/src/CLucene/queryParser/Lexer.cpp index 861c5d3..d147f8b 100644 --- a/src/assistant/3rdparty/clucene/src/CLucene/queryParser/Lexer.cpp +++ b/src/assistant/3rdparty/clucene/src/CLucene/queryParser/Lexer.cpp @@ -117,7 +117,7 @@ bool Lexer::GetNextToken(QueryToken* token) { if( _istspace(ch)!=0 ) { continue; } - TCHAR buf[2] = {ch,'\0'}; + TCHAR buf[2] = {TCHAR(ch),'\0'}; switch(ch) { case '+': token->set(buf, QueryToken::PLUS);