mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
The isnormal() in rev 1.2 should have been isfinite() so subnormals
round correctly. Noticed by: stefanf
This commit is contained in:
parent
3cdb8115d7
commit
0d8f9eca28
2 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@ round(double x)
|
|||
{
|
||||
double t;
|
||||
|
||||
if (!isnormal(x))
|
||||
if (!isfinite(x))
|
||||
return (x);
|
||||
|
||||
if (x >= 0.0) {
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ roundf(float x)
|
|||
{
|
||||
float t;
|
||||
|
||||
if (!isnormal(x))
|
||||
if (!isfinite(x))
|
||||
return (x);
|
||||
|
||||
if (x >= 0.0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue