提交 6c1eb1ee 编写于 作者: H Haojun Liao

[td-6563]fix compiler error.

上级 394896cb
......@@ -2085,7 +2085,7 @@ int32_t tscAllocPayloadFast(SSqlCmd *pCmd, size_t size) {
assert(pCmd->allocSize == 0);
pCmd->payload = malloc(size);
pCmd->allocSize = size;
pCmd->allocSize = (uint32_t) size;
} else if (pCmd->allocSize < size) {
char* tmp = realloc(pCmd->payload, size);
if (tmp == NULL) {
......@@ -2093,7 +2093,7 @@ int32_t tscAllocPayloadFast(SSqlCmd *pCmd, size_t size) {
}
pCmd->payload = tmp;
pCmd->allocSize = size;
pCmd->allocSize = (uint32_t) size;
}
assert(pCmd->allocSize >= size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册