diff --git a/src/common/src/tdataformat.c b/src/common/src/tdataformat.c index b0281cbd00c3fd5cef07593515e9622af302e5d2..c5965347fc00c508eabe6c9f389dc63b7e370043 100644 --- a/src/common/src/tdataformat.c +++ b/src/common/src/tdataformat.c @@ -283,7 +283,7 @@ void dataColSetOffset(SDataCol *pCol, int nEle, int maxPoints) { char *tptr = (char *)(pCol->pData) + sizeof(int32_t) * maxPoints; for (int i = 0; i < nEle; i++) { ((int32_t *)(pCol->pData))[i] = tptr - (char *)(pCol->pData); - tptr = tptr + *(int16_t *)tptr; + tptr = tptr + *(int16_t *)tptr + sizeof(int16_t); } }