fix fdim in tgmath.h
authornsz <nsz@port70.net>
Fri, 9 Mar 2012 14:13:59 +0000 (15:13 +0100)
committernsz <nsz@port70.net>
Fri, 9 Mar 2012 14:13:59 +0000 (15:13 +0100)
include/tgmath.h

index 09edf49..6926d0f 100644 (file)
@@ -105,7 +105,7 @@ without __GNUC__ the return type is always long double [complex]
 #define exp2(x)         __tg_real(exp2, (x))
 #define expm1(x)        __tg_real(expm1, (x))
 #define fabs(x)         __tg_real_complex_fabs(x)
-#define fdim(x)         __tg_real(fdim, (x))
+#define fdim(x,y)       __tg_real_2(fdim, (x), (y))
 #define floor(x)        __tg_real(floor, (x))
 #define fma(x,y,z)      __tg_real_fma((x), (y), (z))
 #define fmax(x,y)       __tg_real_2(fmax, (x), (y))