summaryrefslogtreecommitdiff
path: root/user/clucene/tchar-cast.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-02-11 00:38:53 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-02-11 00:38:53 -0600
commit85b8dd24d4b16e9d12247163cba34de30be47fe1 (patch)
tree5c3214b6210600e39d8244056ec58540bcee8d00 /user/clucene/tchar-cast.patch
parent86c0a8e199e42bee5b5358c4a822912ef4b7ceac (diff)
downloadpackages-85b8dd24d4b16e9d12247163cba34de30be47fe1.tar.gz
packages-85b8dd24d4b16e9d12247163cba34de30be47fe1.tar.bz2
packages-85b8dd24d4b16e9d12247163cba34de30be47fe1.tar.xz
packages-85b8dd24d4b16e9d12247163cba34de30be47fe1.zip
user/clucene: More fixes
This doesn't fix the test failure, but is more correct.
Diffstat (limited to 'user/clucene/tchar-cast.patch')
-rw-r--r--user/clucene/tchar-cast.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/clucene/tchar-cast.patch b/user/clucene/tchar-cast.patch
new file mode 100644
index 000000000..698ed739c
--- /dev/null
+++ b/user/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);