This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,gfortran] Remove homegrown isdigit and isalpha in module.c


I forgot to make this explicit...

> Index: primary.c
...
> @@ -114,7 +115,7 @@ check_digit (int c, int radix)
>        break;
> 
>      case 16:
> -      r = ('0' <= c && c <= '9') || ('a' <= c && c <= 'f');
> +      r = ISXDIGIT (c);
>        break;

This replacement is correct, i.e. it doesn't change the meaning, because the
content of c will not be uppercase here.

- Tobi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]