public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-565] Revert "libstdc++: Use unsigned char argument to std::isdigit"
@ 2021-05-06 12:42 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-05-06 12:42 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:741155468610196bc9fa03cab92902d012b32654

commit r12-565-g741155468610196bc9fa03cab92902d012b32654
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu May 6 09:33:41 2021 +0100

    Revert "libstdc++: Use unsigned char argument to std::isdigit"
    
    This reverts commit d0d6ca019717305df0ef41e3fe1da48f7f561fac.

Diff:
---
 libstdc++-v3/include/std/charconv | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/std/charconv b/libstdc++-v3/include/std/charconv
index 571be075a6b..193702e677a 100644
--- a/libstdc++-v3/include/std/charconv
+++ b/libstdc++-v3/include/std/charconv
@@ -565,7 +565,7 @@ namespace __detail
       while (__first != __last)
 	{
 	  unsigned char __c = *__first;
-	  if (std::isdigit(static_cast<unsigned char>(__c)))
+	  if (std::isdigit(__c))
 	    __c -= '0';
 	  else
 	    {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-06 12:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-06 12:42 [gcc r12-565] Revert "libstdc++: Use unsigned char argument to std::isdigit" Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).