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]

Re: Integer constant parsing overhaul


I wrote:-

> How about scrapping this last if statement and its block, and putting
> something like the following in the switch?
> 
>        case 'l': case 'L':
> 	 if (l++ && s[n - 1] != s[n - 2])
> 	   return 0;
> 	 break;

Agh!  I got the sense of the loop wrong, it should be

 	 if (l++ && s[n - 1] != s[n])

I think.

Neil.


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