diff --git a/src/query/src/tdigest.c b/src/query/src/tdigest.c index fd850fe0cf4e772a21a7fd89c5bea60278620dc6..109fd7574f04a7f82e92f112551ca9494c7e667a 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);