You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ji...@apache.org on 2023/07/11 09:59:41 UTC

[doris-thirdparty] branch clucene updated: [Compile] fix compile problem (#99)

This is an automated email from the ASF dual-hosted git repository.

jianliangqi pushed a commit to branch clucene
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git


The following commit(s) were added to refs/heads/clucene by this push:
     new 34c2c671 [Compile] fix compile problem (#99)
34c2c671 is described below

commit 34c2c6712e27a8c94e9cdb426a0a74ad4bd7d7e5
Author: airborne12 <ai...@gmail.com>
AuthorDate: Tue Jul 11 17:59:35 2023 +0800

    [Compile] fix compile problem (#99)
---
 src/core/CLucene/analysis/AnalysisHeader.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/core/CLucene/analysis/AnalysisHeader.h b/src/core/CLucene/analysis/AnalysisHeader.h
index c1d3381f..8a52350c 100644
--- a/src/core/CLucene/analysis/AnalysisHeader.h
+++ b/src/core/CLucene/analysis/AnalysisHeader.h
@@ -10,7 +10,6 @@
 #include "CLucene/index/Payload.h"
 #include "CLucene/util/VoidList.h"
 #include "CLucene/LuceneThreads.h"
-#include "CLucene/config/repl_tchar.h"
 
 CL_CLASS_DEF(util,Reader)
 CL_CLASS_DEF(util,IReader)
@@ -227,7 +226,7 @@ inline size_t Token::termLength<char>(){
 template <>
 inline size_t Token::termLength<TCHAR>(){
     if ( _termTextLen == -1 ) //it was invalidated by growBuffer
-        _termTextLen = _tcslen((TCHAR*)_buffer);
+        _termTextLen = wcslen((TCHAR*)_buffer);
     return _termTextLen;
 };
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org