From 6a6f67c0f160e705cfe2baaf70370a583d838486 Mon Sep 17 00:00:00 2001 From: Cary Xu Date: Mon, 11 Oct 2021 20:52:17 +0800 Subject: [PATCH] code optimization --- 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 e773a06900..6122a0acfa 100644 --- a/src/common/src/tdataformat.c +++ b/src/common/src/tdataformat.c @@ -270,7 +270,7 @@ int dataColAppendValEx(SDataCol *pCol, const void *value, int numOfRows, int max pCol->len += pCol->bytes; } else { // update the value of last row by increasing the pCol->len and keeping the original numOfRows - ASSERT((pCol->len == TYPE_BYTES[pCol->type] * (numOfRows + 1)) && (pCol->len > TYPE_BYTES[pCol->type])); + ASSERT(pCol->len == (TYPE_BYTES[pCol->type] * (numOfRows + 1))); memcpy(POINTER_SHIFT(pCol->pData, pCol->len - TYPE_BYTES[pCol->type]), value, pCol->bytes); } } -- GitLab