未验证 提交 84a38901 编写于 作者: Z zhangpc 提交者: GitHub

fix float value directly tested for equality (#1045)

上级 b78489d2
......@@ -196,7 +196,7 @@ int ObExprMod::mod_float(ObObj& res, const ObObj& left, const ObObj& right, ObIA
} else if (OB_UNLIKELY(left.get_type_class() != right.get_type_class())) {
ret = OB_INVALID_ARGUMENT;
LOG_WARN("Invalid types", K(ret), K(left), K(right));
} else if (fabsf(right.get_float()) == 0.0) {
} else if (fabsf(right.get_float()) < EPSILON) {
res.set_float(left.get_float());
} else {
res.set_float(fmodf(left.get_float(), right.get_float()));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册