diff --git a/src/query/src/tdigest.c b/src/query/src/tdigest.c index dde724b2e046288d14d57b330e3205f4fdbfda2c..2b0f0604bb0737b8789538579db7248dae4c24e7 100644 --- a/src/query/src/tdigest.c +++ b/src/query/src/tdigest.c @@ -60,7 +60,7 @@ TDigest *tdigestNewFrom(void* pBuf, int compression) { t->compression = compression; t->size = (long long)GET_CENTROID(compression); - t->threshold = GET_THRESHOLD(compression); + t->threshold = (int)GET_THRESHOLD(compression); t->min = INFINITY; return t; }