[PATCH] Make large enum constants unsigned
Stefan Kristiansson
stefan.kristiansson@saunalahti.fi
Thu May 22 14:10:00 GMT 2014
On Thu, May 22, 2014 at 4:33 PM, Pierre Muller
<pierre.muller@ics-cnrs.unistra.fr> wrote:
> Couldn't we support 64-bit constants already,
> by adding
> + (if (> (cadr e)
> + #x100000000)
> + "LL" ""))
> Right after the conditional "U" postfix?
>
> This way, the pre C-99 standard would only be violated when
> it is really required anyhow, no?
>
That would solve the standard violation problem, but the fact that
enums are limited to the size of an int still remains, so it wouldn't
help much.
Stefan
More information about the Cgen
mailing list