Fixed clang warning on implicit double to int conversion

This commit is contained in:
torger
2014-03-20 15:22:51 +01:00
parent eb01fdb27a
commit 29ec5ba411

2
rtengine/sleef.c Normal file → Executable file
View File

@@ -75,7 +75,7 @@ __inline int ilogbp1(double d) {
__inline int xilogb(double d) {
int e = ilogbp1(xfabs(d)) - 1;
e = d == 0 ? -2147483648.0 : e;
e = d == 0 ? -2147483648 : e;
e = d == INFINITY || d == -INFINITY ? 2147483647 : e;
return e;
}