Hello,

On Jun 22, 2010, at 11:13 AM, Marco Trudel wrote:
> void foo(int i, char c) {
>   foo('.', 2);        
>   i = c;
>   c = i;
> }
>
> becomes:
>
> void foo(int i, char c) {
>   foo('.', (char)2);
>   i = (int)c;
>   c = (char)i;
> }
>
> Where I guess the call to foo should be "foo((int)'.', (char)2);".

I don't think it should.

C99, 6.4.4.4, paragraph 10:

An integer character constant has type int.

Best regards,

Pascal


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users

Reply via email to