summaryrefslogtreecommitdiff
path: root/src/math/scalbf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/scalbf.c')
-rw-r--r--src/math/scalbf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/scalbf.c b/src/math/scalbf.c
index d08f2a1a..94364974 100644
--- a/src/math/scalbf.c
+++ b/src/math/scalbf.c
@@ -19,13 +19,13 @@ float scalbf(float x, float fn)
{
if (isnan(x) || isnan(fn)) return x*fn;
if (!isfinite(fn)) {
- if (fn > (float)0.0)
+ if (fn > 0.0f)
return x*fn;
else
return x/(-fn);
}
if (rintf(fn) != fn) return (fn-fn)/(fn-fn);
- if ( fn > (float)65000.0) return scalbnf(x, 65000);
- if (-fn > (float)65000.0) return scalbnf(x,-65000);
+ if ( fn > 65000.0f) return scalbnf(x, 65000);
+ if (-fn > 65000.0f) return scalbnf(x,-65000);
return scalbnf(x,(int)fn);
}