corrected the overflow checks
This commit is contained in:
parent
2a11727622
commit
c4d0a4f449
|
@ -104,7 +104,7 @@ dbl_over: trap(EFOVFL);
|
|||
}
|
||||
}
|
||||
/* check for overflow */
|
||||
if (f->exp >= DBL_MAX)
|
||||
if (f->exp > DBL_MAX)
|
||||
goto dbl_over;
|
||||
|
||||
/* STORE EXPONENT: */
|
||||
|
@ -177,7 +177,7 @@ sgl_over: trap(EFOVFL);
|
|||
}
|
||||
}
|
||||
}
|
||||
if (f->exp >= SGL_MAX)
|
||||
if (f->exp > SGL_MAX)
|
||||
goto sgl_over;
|
||||
|
||||
/* STORE EXPONENT */
|
||||
|
|
Loading…
Reference in a new issue