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/12/14 08:33:13 UTC
(doris-thirdparty) 05/05: [Fix](PFOR) fix DefaultDDEC (#147)
This is an automated email from the ASF dual-hosted git repository.
jianliangqi pushed a commit to branch clucene-2.0
in repository https://gitbox.apache.org/repos/asf/doris-thirdparty.git
commit 2cb4fde413184714a9e67dbb1d5763a438d29e7e
Author: airborne12 <ai...@gmail.com>
AuthorDate: Wed Dec 13 18:52:49 2023 +0800
[Fix](PFOR) fix DefaultDDEC (#147)
---
src/core/CLucene/util/PFORUtil.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/CLucene/util/PFORUtil.cpp b/src/core/CLucene/util/PFORUtil.cpp
index 8fecd40f..ae27f521 100644
--- a/src/core/CLucene/util/PFORUtil.cpp
+++ b/src/core/CLucene/util/PFORUtil.cpp
@@ -53,7 +53,7 @@ size_t DefaultDDEC(unsigned char *__restrict in, size_t n, uint32_t *__restrict
b = in[bufferSize++];
docCode |= (b & 0x7F) << shift;
}
- docDelta += (docCode >> 1);
+ docDelta += docCode; // Corrected line: Removed right shift
out[i] = docDelta;
}
return n;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org