Mark private function __sign as constexpr.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@360167 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow
2019-05-07 16:07:24 +00:00
parent da525f1a68
commit 2f323247cc

View File

@@ -556,7 +556,7 @@ midpoint(_TPtr __a, _TPtr __b) noexcept
template <typename _Tp>
int __sign(_Tp __val) {
constexpr int __sign(_Tp __val) {
return (_Tp(0) < __val) - (__val < _Tp(0));
}