Fix backwards test that I committed yesterday. Sigh
llvm-svn: 357540
This commit is contained in:
parent
2065680b47
commit
0583d9ea8d
|
@ -436,9 +436,9 @@ sleep_for(const chrono::duration<_Rep, _Period>& __d)
|
||||||
{
|
{
|
||||||
#if defined(_LIBCPP_COMPILER_GCC) && (__powerpc__ || __POWERPC__)
|
#if defined(_LIBCPP_COMPILER_GCC) && (__powerpc__ || __POWERPC__)
|
||||||
// GCC's long double const folding is incomplete for IBM128 long doubles.
|
// GCC's long double const folding is incomplete for IBM128 long doubles.
|
||||||
_LIBCPP_CONSTEXPR duration<long double> _Max = duration<long double>(ULLONG_MAX/1000000000ULL) ;
|
|
||||||
#else
|
|
||||||
_LIBCPP_CONSTEXPR duration<long double> _Max = nanoseconds::max();
|
_LIBCPP_CONSTEXPR duration<long double> _Max = nanoseconds::max();
|
||||||
|
#else
|
||||||
|
_LIBCPP_CONSTEXPR duration<long double> _Max = duration<long double>(ULLONG_MAX/1000000000ULL) ;
|
||||||
#endif
|
#endif
|
||||||
nanoseconds __ns;
|
nanoseconds __ns;
|
||||||
if (__d < _Max)
|
if (__d < _Max)
|
||||||
|
|
Loading…
Reference in New Issue