From 95b94621e3b7e95874d0e480c993ef666a4a6368 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Wed, 20 Apr 2022 10:00:16 +0800 Subject: [PATCH] trow: set other bit 0 in offset 0 --- include/common/trow.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/common/trow.h b/include/common/trow.h index 862df43fc2..40462a7eef 100644 --- a/include/common/trow.h +++ b/include/common/trow.h @@ -308,8 +308,8 @@ static FORCE_INLINE int32_t tdSetBitmapValTypeII(void *pBitmap, int16_t colIdx, // use literal value directly and not use formula to simplify the codes switch (nOffset) { case 0: - *pDestByte = ((*pDestByte) & 0x3F) | (valType << 6); // set the value and clear other partitions for offset 0 + *pDestByte = (valType << 6); // *pDestByte |= (valType << 6); break; case 1: @@ -417,8 +417,8 @@ static FORCE_INLINE int32_t tdSetBitmapValTypeI(void *pBitmap, int16_t colIdx, T // use literal value directly and not use formula to simplify the codes switch (nOffset) { case 0: - *pDestByte = ((*pDestByte) & 0x7F) | (valType << 7); // set the value and clear other partitions for offset 0 + *pDestByte = (valType << 7); // *pDestByte |= (valType << 7); break; case 1: -- GitLab