Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!ut-sally!seismo!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: net.lang.c Subject: Re: type cast in initializer Message-ID: <924@brl-smoke.ARPA> Date: Fri, 14-Feb-86 04:03:56 EST Article-I.D.: brl-smok.924 Posted: Fri Feb 14 04:03:56 1986 Date-Received: Sun, 16-Feb-86 04:54:48 EST References: <302@hsi.UUCP> <1450@bbncc5.UUCP> <305@cray.UUCP> <269@spp3.UUCP> <792@brl-smoke.ARPA> <354@utastro.UUCP> Reply-To: gwyn@brl.ARPA Organization: /usr/local/lib/news/organization Lines: 7 >The values of '\377' and -1 are one and the same without a type cast. Well, on some architectures they are and on some they aren't. X3J11 appears to have decided that they are the same whenever a plain (char) is treated as (signed char); otherwise '\377' has the value 255. I don't like this, but I suspect it's in the rules for "historical reasons".