提交 4f176e32 编写于 作者: G Ganlin Zhao

fix: [ASAN] devive by zero

上级 2bdb86e2
......@@ -24,6 +24,8 @@ static double tlog2(double v, double base) {
return a;
} else if (isnan(b) || isinf(b)) {
return b;
} else if (b == 0) {
return INFINITY;
} else {
return a / b;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册