From fbead6ad146b13fabe0657ab76012e10433209cb Mon Sep 17 00:00:00 2001 From: AlexDuan <417921451@qq.com> Date: Fri, 10 Sep 2021 13:59:50 +0800 Subject: [PATCH] force conversion --- src/query/src/qAggMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qAggMain.c b/src/query/src/qAggMain.c index 5d1553895d..0e02b1f5ec 100644 --- a/src/query/src/qAggMain.c +++ b/src/query/src/qAggMain.c @@ -2510,7 +2510,7 @@ static void tdigest_merge(SQLFunctionCtx *pCtx) { SAPercentileInfo *pOutput = getAPerctInfo(pCtx); TDigest* pTDigest = pOutput->pTDigest; if(pTDigest->num_centroids == 0) { - memcpy(pTDigest, pInput->pTDigest, TDIGEST_SIZE(COMPRESSION)); + memcpy(pTDigest, pInput->pTDigest, (size_t)TDIGEST_SIZE(COMPRESSION)); tdigestAutoFill(pTDigest, COMPRESSION); } else { tdigestMerge(pOutput->pTDigest, pInput->pTDigest); -- GitLab