Diagnose decimal integer constants too large for intmax_t

Joseph S. Myers joseph@codesourcery.com
Sat Apr 25 19:03:00 GMT 2009


On Sat, 25 Apr 2009, Jakub Jelinek wrote:

> On Sat, Apr 25, 2009 at 06:46:20PM +0000, Joseph S. Myers wrote:
> > --- libcpp/expr.c	(revision 146747)
> > +++ libcpp/expr.c	(working copy)
> > @@ -538,8 +538,27 @@ cpp_interpret_integer (cpp_reader *pfile
> >  		    && pfile->state.in_directive)
> >  	       && !num_positive (result, precision))
> >  	{
> > +	  /* This is for constants within the range of uintmax_t but
> > +	     not that or intmax_t.  For such decimal constants, a
> 
> s/or/of/ ?

Thanks, fixed.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Gcc-patches mailing list