[td-6563]fix compiler error.

This commit is contained in:
Haojun Liao 2021-09-11 15:07:50 +08:00
parent 394896cb1d
commit 6c1eb1ee92
1 changed files with 2 additions and 2 deletions

View File

@ -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);