提交 2487a9ce 编写于 作者: W wpan

fix windows compile error

上级 076c5ac7
......@@ -51,7 +51,7 @@ void tdigestCopy(TDigest* dst, TDigest* src) {
}
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;
t->centroids = (SCentroid*)calloc((int32_t)GET_CENTROID(compression), sizeof(SCentroid));
......
......@@ -36,7 +36,7 @@ enum {
void tdigest_init(TDigest **pTDigest) {
void *tmp = calloc(1, (int16_t)(TDIGEST_SIZE(COMPRESSION)));
void *tmp = calloc(1, (size_t)(TDIGEST_SIZE(COMPRESSION)));
*pTDigest = tdigestNewFrom(tmp, COMPRESSION);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册