aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2011-07-25 18:09:56 +0000
committerHoward Hinnant <hhinnant@apple.com>2011-07-25 18:09:56 +0000
commit725fb0e2b72a644b090b962fdec47516d186409a (patch)
tree33d866a359b9084c789399ff37fcb4019bc3eb38
parent430d7a1a621a126a9ffe442ad8987ba02b46dae9 (diff)
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
-rw-r--r--lib/Headers/tgmath.h7
1 files changed, 3 insertions, 4 deletions
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