libstdc++: Don't check always-true condition [PR101965]
Signed-off-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/ChangeLog:
PR libstdc++/101965
* include/std/charconv (__to_chars_i): Remove redundant check.
(cherry picked from commit 85a7095950
)
This commit is contained in:
parent
3fbc38f35f
commit
8334ee1922
@ -336,12 +336,10 @@ namespace __detail
|
||||
*__first = '0';
|
||||
return { __first + 1, errc{} };
|
||||
}
|
||||
|
||||
if _GLIBCXX17_CONSTEXPR (std::is_signed<_Tp>::value)
|
||||
else if _GLIBCXX17_CONSTEXPR (std::is_signed<_Tp>::value)
|
||||
if (__value < 0)
|
||||
{
|
||||
if (__builtin_expect(__first != __last, 1))
|
||||
*__first++ = '-';
|
||||
*__first++ = '-';
|
||||
__unsigned_val = _Up(~__value) + _Up(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user