提交 ba60fa9d 编写于 作者: H Haojun Liao

[TD-225]fix compiler error.

上级 bfdba040
...@@ -242,7 +242,7 @@ void interResToBinary(SBufferWriter* bw, SArray* pRes, int32_t tagLen) { ...@@ -242,7 +242,7 @@ void interResToBinary(SBufferWriter* bw, SArray* pRes, int32_t tagLen) {
tbufWriteBinary(bw, pOne->tags, tagLen); tbufWriteBinary(bw, pOne->tags, tagLen);
} }
uint32_t numOfCols = taosArrayGetSize(pOne->pResult); uint32_t numOfCols = (uint32_t) taosArrayGetSize(pOne->pResult);
tbufWriteUint32(bw, numOfCols); tbufWriteUint32(bw, numOfCols);
for(int32_t j = 0; j < numOfCols; ++j) { for(int32_t j = 0; j < numOfCols; ++j) {
SStddevInterResult* p = taosArrayGet(pOne->pResult, j); SStddevInterResult* p = taosArrayGet(pOne->pResult, j);
...@@ -315,7 +315,7 @@ void freeInterResult(void* param) { ...@@ -315,7 +315,7 @@ void freeInterResult(void* param) {
SInterResult* pResult = (SInterResult*) param; SInterResult* pResult = (SInterResult*) param;
tfree(pResult->tags); tfree(pResult->tags);
int32_t numOfCols = taosArrayGetSize(pResult->pResult); int32_t numOfCols = (int32_t) taosArrayGetSize(pResult->pResult);
for(int32_t i = 0; i < numOfCols; ++i) { for(int32_t i = 0; i < numOfCols; ++i) {
SStddevInterResult *p = taosArrayGet(pResult->pResult, i); SStddevInterResult *p = taosArrayGet(pResult->pResult, i);
taosArrayDestroy(p->pResult); taosArrayDestroy(p->pResult);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册