From bdc0e4661d4b501fdc8bd66192b5cadc615a610e Mon Sep 17 00:00:00 2001 From: AlexDuan <417921451@qq.com> Date: Mon, 11 Oct 2021 19:27:32 +0800 Subject: [PATCH] windows build error --- src/query/src/tdigest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/tdigest.c b/src/query/src/tdigest.c index fd850fe0cf..109fd7574f 100644 --- a/src/query/src/tdigest.c +++ b/src/query/src/tdigest.c @@ -49,7 +49,7 @@ void tdigestAutoFill(TDigest* t, int32_t compression) { } TDigest *tdigestNewFrom(void* pBuf, int32_t compression) { - memset(pBuf, 0, TDIGEST_SIZE(compression)); + memset(pBuf, 0, (size_t)TDIGEST_SIZE(compression)); TDigest* t = (TDigest*)pBuf; tdigestAutoFill(t, compression); -- GitLab