Fixed clang warning on implicit double to int conversion
This commit is contained in:
2
rtengine/sleef.c
Normal file → Executable file
2
rtengine/sleef.c
Normal file → Executable 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user