Fix an assert to allow rounding mode 0.
--HG-- extra : convert_revision : 119cc87ccf939d3a0048d87d18e125deca378bb7
This commit is contained in:
parent
752199f827
commit
cb7934f052
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ static const int m5_round_ops[] = {FE_DOWNWARD, FE_TONEAREST, FE_TOWARDZERO, FE
|
|||
|
||||
void m5_fesetround(int rm)
|
||||
{
|
||||
assert(rm > 0 && rm < 4);
|
||||
assert(rm >= 0 && rm < 4);
|
||||
fesetround(m5_round_ops[rm]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue