diff --git a/src/query/src/tdigest.c b/src/query/src/tdigest.c index 4cc7f5b6478bc25868267ea6c392b0fe74fe9202..3028b8daa9a48046dd2abd7704aa87c592ac1241 100644 --- a/src/query/src/tdigest.c +++ b/src/query/src/tdigest.c @@ -113,7 +113,7 @@ void tdigestCompress(TDigest *t) { t->num_buffered_pts = 0; qsort(unmerged_centroids, num_unmerged, sizeof(SCentroid), cmpCentroid); - args.centroids = (SCentroid*)calloc(sizeof(SCentroid), t->size); + args.centroids = (SCentroid*)calloc(sizeof(SCentroid), (size_t)t->size); args.t = t; args.min = INFINITY;