diff --git a/dlls/d3dx9_36/math.c b/dlls/d3dx9_36/math.c index f13f2fbfc6c..481278e1a2f 100644 --- a/dlls/d3dx9_36/math.c +++ b/dlls/d3dx9_36/math.c @@ -1776,7 +1776,7 @@ static inline unsigned short float_32_to_16(const float in) { int exp = 0, origexp; float tmp = fabs(in); - int sign = signbit(in); + int sign = (copysignf(1, in) < 0); unsigned int mantissa; unsigned short ret;