[TD-225]
This commit is contained in:
parent
7c3bc50140
commit
bbab7576b1
|
@ -3748,7 +3748,7 @@ static int32_t twa_function_impl(SQLFunctionCtx* pCtx, int32_t tsIndex, int32_t
|
|||
continue;
|
||||
}
|
||||
|
||||
SPoint1 st = {.key = primaryKey[i + tsIndex], .val = val[i]};
|
||||
SPoint1 st = {.key = primaryKey[i + tsIndex], .val = (double) val[i]};
|
||||
pInfo->dOutput += twa_get_area(pInfo->p, st);
|
||||
pInfo->p = st;
|
||||
}
|
||||
|
@ -3904,7 +3904,7 @@ static void twa_function_f(SQLFunctionCtx *pCtx, int32_t index) {
|
|||
continue;
|
||||
}
|
||||
|
||||
SPoint1 st = {.key = primaryKey[i + index], .val = val[i]};
|
||||
SPoint1 st = {.key = primaryKey[i + index], .val = (double) val[i]};
|
||||
pInfo->dOutput += twa_get_area(pInfo->p, st);
|
||||
pInfo->p = st;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue