Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!ittvax!dcdwest!sdcsvax!sdcrdcf!hplabs!sri-unix!gwyn@BRL-VLD.ARPA From: gwyn@BRL-VLD.ARPA Newsgroups: net.unix-wizards Subject: Re: unsigned char -> unsigned int conversion Message-ID: <944@sri-arpa.UUCP> Date: Sat, 16-Jun-84 22:44:35 EDT Article-I.D.: sri-arpa.944 Posted: Sat Jun 16 22:44:35 1984 Date-Received: Wed, 20-Jun-84 00:39:37 EDT Lines: 9 From: Doug Gwyn (VLD/VMB)Unsigned integer types are widened by adding zeros for the most significant bits; i.e. they do not sign-extend. So coercing an unsigned char to an int should not make it negative. I have no idea if any of this is in the manual. Presumably the issue has been dealt with in the ANSI committee. They are making noises about an actual standard as soon as the end of 1985. (Hope, hope.)