diff --git a/src/query/src/tdigest.c b/src/query/src/tdigest.c index b3a557653d4c4622d45cf8946d952ceb9e80fc16..1ffc106ddeaa5409e4484702aa33aad6e3367a4f 100644 --- a/src/query/src/tdigest.c +++ b/src/query/src/tdigest.c @@ -123,7 +123,7 @@ void tdigestCompress(TDigest *t) { qsort(unmerged_centroids, num_unmerged, sizeof(Centroid), centroid_cmp); memset(&args, 0, sizeof(MergeArgs)); - args.centroids = (Centroid*)malloc(sizeof(Centroid) * t->size); + args.centroids = (Centroid*)malloc((size_t)(sizeof(Centroid) * t->size)); memset(args.centroids, 0, sizeof(Centroid) * t->size); args.t = t;