提交 20245f00 编写于 作者: B Behdad Esfahbod

Fix likely check

Ouch!
上级 d866e905
......@@ -208,7 +208,7 @@ struct DictOpSet : OpSet<Number>
break;
case FRAC_PART:
if (likely ((frac_part <= MAX_FRACT / 10)))
if (likely (frac_part <= MAX_FRACT / 10))
{
frac_part = (frac_part * 10) + (unsigned)d;
frac_count++;
......@@ -216,7 +216,7 @@ struct DictOpSet : OpSet<Number>
break;
case EXP_PART:
if (likely (exp_part * 10) + d <= MAX_EXP)
if (likely (exp_part * 10 + d <= MAX_EXP))
{
exp_part = (exp_part * 10) + d;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册