From: Howard Hinnant Date: Mon, 25 Jul 2011 18:09:56 +0000 (+0000) Subject: http://llvm.org/bugs/show_bug.cgi?id=10472 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=725fb0e2b72a644b090b962fdec47516d186409a;p=clang http://llvm.org/bugs/show_bug.cgi?id=10472 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135927 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/tgmath.h b/lib/Headers/tgmath.h index e1a0023678..1b0b9d24c1 100644 --- a/lib/Headers/tgmath.h +++ b/lib/Headers/tgmath.h @@ -1049,19 +1049,18 @@ static long double static float _TG_ATTRS - __tg_nexttoward(float __x, float __y) {return nexttowardf(__x, __y);} + __tg_nexttoward(float __x, long double __y) {return nexttowardf(__x, __y);} static double _TG_ATTRS - __tg_nexttoward(double __x, double __y) {return nexttoward(__x, __y);} + __tg_nexttoward(double __x, long double __y) {return nexttoward(__x, __y);} static long double _TG_ATTRS __tg_nexttoward(long double __x, long double __y) {return nexttowardl(__x, __y);} #undef nexttoward -#define nexttoward(__x, __y) __tg_nexttoward(__tg_promote2((__x), (__y))(__x), \ - __tg_promote2((__x), (__y))(__y)) +#define nexttoward(__x, __y) __tg_nexttoward(__tg_promote1((__x))(__x), (__y)) // remainder