This is the mail archive of the cgen@sourceware.org mailing list for the CGEN 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] Make large enum constants unsigned


Hi -

> >      (string-append "(signed int)" (number->string (cadr e)))
> [...]
> how would that be better than?
>       (string-append (number->string (cadr e)) "U")

It would be a closer match to expressing our desire to match C enum
typing, but I'd be fine with "U" suffixing too.


> I dismissed that, since it would create a lot larger diff in generated
> files than in the isolated cases where it's actually a problem. [...]

IMHO, that's not such a big deal.  We don't usually look closely at
the diffs of generated files, once the generating tools are trustworthy.


- FChE


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