From 1223a29fc5f740cbc38113af8af45ecd0222b75f Mon Sep 17 00:00:00 2001 From: AlexDuan <417921451@qq.com> Date: Sat, 11 Sep 2021 13:22:45 +0800 Subject: [PATCH] window x86 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 b3a557653d..1ffc106dde 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; -- GitLab