Oh, indeed! char c = '.';
becomes char c = (char)'.'; Thanks and sorry for the noise. Marco On 22.06.2010 11:16, Pascal Cuoq wrote: > 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