2020-01-04 02:31:01 +00:00
|
|
|
--- a/include/cmath
|
|
|
|
+++ b/include/cmath
|
|
|
|
@@ -615,7 +615,7 @@ _Fp __lerp(_Fp __a, _Fp __b, _Fp __t) no
|
|
|
|
|
|
|
|
if (__t == 1) return __b;
|
|
|
|
const _Fp __x = __a + __t * (__b - __a);
|
|
|
|
- if (__t > 1 == __b > __a)
|
|
|
|
+ if ((__t > 1) == (__b > __a))
|
|
|
|
return __b < __x ? __x : __b;
|
|
|
|
else
|
|
|
|
return __x < __b ? __x : __b;
|
2020-01-01 03:37:35 +00:00
|
|
|
--- a/include/memory
|
|
|
|
+++ b/include/memory
|
2020-01-04 02:31:01 +00:00
|
|
|
@@ -1696,7 +1696,7 @@ struct _LIBCPP_TEMPLATE_VIS allocator_tr
|
2020-01-01 03:37:35 +00:00
|
|
|
ptrdiff_t _Np = __end1 - __begin1;
|
|
|
|
__end2 -= _Np;
|
|
|
|
if (_Np > 0)
|
|
|
|
- _VSTD::memcpy(__end2, __begin1, _Np * sizeof(_Tp));
|
|
|
|
+ __end2 = __begin1;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
--- a/src/filesystem/filesystem_common.h
|
|
|
|
+++ b/src/filesystem/filesystem_common.h
|
|
|
|
@@ -197,8 +197,8 @@ private:
|
|
|
|
using chrono::duration;
|
|
|
|
using chrono::duration_cast;
|
|
|
|
|
|
|
|
-using TimeSpec = struct ::timespec;
|
|
|
|
-using StatT = struct ::stat;
|
|
|
|
+using TimeSpec = struct timespec;
|
|
|
|
+using StatT = struct stat;
|
|
|
|
|
|
|
|
template <class FileTimeT, class TimeT,
|
|
|
|
bool IsFloat = is_floating_point<typename FileTimeT::rep>::value>
|