improve the performance of numeric's floor()

This commit is contained in:
junhangis
2022-08-07 02:04:57 +08:00
parent a4aa854578
commit c9f64d8350

View File

@ -5841,8 +5841,7 @@ static void floor_var(NumericVar* var, NumericVar* result)
{ {
NumericVar tmp; NumericVar tmp;
init_var(&tmp); init_var_from_var(var, &tmp);
set_var_from_var(var, &tmp);
trunc_var(&tmp, 0); trunc_var(&tmp, 0);