Add missing cast in `fpclassify` that `isnan` does use Signed-off-by: Erez Geva <ErezGeva2@gmail.com> Signed-off-by: Erez Geva <ErezGeva@nwtime.org> Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h index 03cedde..c0a0285 100644 --- a/mingw-w64-headers/crt/math.h +++ b/mingw-w64-headers/crt/math.h
@@ -495,13 +495,13 @@ #define fpclassify(x) \ __mingw_choose_expr ( \ __mingw_types_compatible_p (__typeof__ (x), double), \ - __fpclassify(x), \ + __fpclassify((double)(x)), \ __mingw_choose_expr ( \ __mingw_types_compatible_p (__typeof__ (x), float), \ - __fpclassifyf(x), \ + __fpclassifyf((float)(x)), \ __mingw_choose_expr ( \ __mingw_types_compatible_p (__typeof__ (x), long double), \ - __fpclassifyl(x), \ + __fpclassifyl((long double)(x)), \ __dfp_expansion(__fpclassify,(__builtin_trap(),0),x))))