提交 02cd3cc5 编写于 作者: G Ganlin Zhao

fix windows compilation error

上级 3243e9d0
......@@ -3121,9 +3121,9 @@ static void percentile_finalizer(SQLFunctionCtx *pCtx) {
v = pCtx->param[i].nType == TSDB_DATA_TYPE_INT ? pCtx->param[i].i64 : pCtx->param[i].dKey;
if (i == pCtx->numOfParams - 1) {
len += snprintf(varDataVal(pCtx->pOutput) + len, maxBufLen - len, "%lf]", getPercentile(pMemBucket, v));
len += snprintf((char *)varDataVal(pCtx->pOutput) + len, maxBufLen - len, "%lf]", getPercentile(pMemBucket, v));
} else {
len += snprintf(varDataVal(pCtx->pOutput) + len, maxBufLen - len, "%lf, ", getPercentile(pMemBucket, v));
len += snprintf((char *)varDataVal(pCtx->pOutput) + len, maxBufLen - len, "%lf, ", getPercentile(pMemBucket, v));
}
}
varDataSetLen(pCtx->pOutput, len);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册