[td-225]fix compiler error.

This commit is contained in:
Haojun Liao 2021-06-21 15:46:15 +08:00
parent 5afd77489b
commit 5a9dbf41d4
1 changed files with 1 additions and 1 deletions

View File

@ -3945,7 +3945,7 @@ static void rate_finalizer(SQLFunctionCtx *pCtx) {
return;
}
*(double*) pCtx->pOutput = do_calc_rate(pRateInfo, TSDB_TICK_PER_SECOND(pCtx->param[0].i64));
*(double*) pCtx->pOutput = do_calc_rate(pRateInfo, (double) TSDB_TICK_PER_SECOND(pCtx->param[0].i64));
// cannot set the numOfIteratedElems again since it is set during previous iteration
pResInfo->numOfRes = 1;