[gcc r12-565] Revert "libstdc++: Use unsigned char argument to std::isdigit"

Jonathan Wakely redi@gcc.gnu.org
Thu May 6 12:42:06 GMT 2021


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
 	    {


More information about the Libstdc++-cvs mailing list