summaryrefslogtreecommitdiff
path: root/legacy/clucene/tchar-cast.patch
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/clucene/tchar-cast.patch')
-rw-r--r--legacy/clucene/tchar-cast.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/legacy/clucene/tchar-cast.patch b/legacy/clucene/tchar-cast.patch
new file mode 100644
index 000000000..698ed739c
--- /dev/null
+++ b/legacy/clucene/tchar-cast.patch
@@ -0,0 +1,11 @@
+--- a/src/core/CLucene/queryParser/legacy/Lexer.cpp 2011-03-16 20:21:07.000000000 -0400
++++ b/src/core/CLucene/queryParser/legacy/Lexer.cpp 2014-06-24 18:33:06.000000000 -0400
+@@ -117,7 +117,7 @@
+ if( _istspace(ch)!=0 ) {
+ continue;
+ }
+- TCHAR buf[2] = {ch,'\0'};
++ TCHAR buf[2] = {TCHAR(ch),'\0'};
+ switch(ch) {
+ case '+':
+ token->set(buf, QueryToken::PLUS);