diff --git a/src/query/src/qFill.c b/src/query/src/qFill.c index 810140e8f354f2521f8592a2db90adb001c6020e..2de1029396fb779798ea7c20da939b2153ca3dd3 100644 --- a/src/query/src/qFill.c +++ b/src/query/src/qFill.c @@ -454,7 +454,7 @@ void taosFillCopyInputDataFromOneFilePage(SFillInfo* pFillInfo, const tFilePage* pFillInfo->alloc = (int32_t)pInput->num; } - memcpy(pFillInfo->pData[i], data, pCol->col.bytes * pInput->num); + memcpy(pFillInfo->pData[i], data, (size_t)(pCol->col.bytes * pInput->num)); if (TSDB_COL_IS_TAG(pCol->flag)) { // copy the tag value to tag value buffer SFillTagColInfo* pTag = &pFillInfo->pTags[pCol->tagIndex];