wchar_t values

Norman Diamond diamond at jit345.swstokyo.dec.com
Mon Apr 1 16:52:49 AEST 1991


In article <15640 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>In article <990 at sranha.sra.co.jp> erik at sra.co.jp (Erik M. van der Poel) writes:
>>Which of the following two conditions is the correct interpretation of
>>the ANSI C standard:
>>	('c' == L'c')
>>	('c' == ((char) L'c'))
>Neither one, although the first one is close.  The numerical values
>of these two (possibly distinct) integer types shall be the same.

Huh?  When they have the same numerical value and both are integer types,
how is it possible for them to not compare equal?
--
Norman Diamond       diamond at tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.



More information about the Comp.std.c mailing list