提交 6a6f67c0 编写于 作者: C Cary Xu

code optimization

上级 85343a0e
...@@ -270,7 +270,7 @@ int dataColAppendValEx(SDataCol *pCol, const void *value, int numOfRows, int max ...@@ -270,7 +270,7 @@ int dataColAppendValEx(SDataCol *pCol, const void *value, int numOfRows, int max
pCol->len += pCol->bytes; pCol->len += pCol->bytes;
} else { } else {
// update the value of last row by increasing the pCol->len and keeping the original numOfRows // 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); memcpy(POINTER_SHIFT(pCol->pData, pCol->len - TYPE_BYTES[pCol->type]), value, pCol->bytes);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册