From dcb64f4e1bdb4ecca8ac142e541576e1620fb135 Mon Sep 17 00:00:00 2001 From: hzcheng Date: Wed, 29 Apr 2020 13:19:46 +0800 Subject: [PATCH] TD-166 --- src/common/src/tdataformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/src/tdataformat.c b/src/common/src/tdataformat.c index b0281cbd00..c5965347fc 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); } } -- GitLab