Path: utzoo!attcan!uunet!husc6!purdue!umd5!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: Puzzle on unsigned promotions Message-ID: <12291@mimsy.UUCP> Date: 2 Jul 88 20:39:59 GMT References: <736@vsi.UUCP> <12251@mimsy.UUCP> <565@unh.UUCP> Distribution: comp Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 12 In article <565@unh.UUCP> jeff@unh.UUCP (Jeffrey E. F. Friedl) writes: >... no where in K&R-I can I find where it specifically >stipulates that the conversion from unsigned short to a larger unsigned >int is done by zero padding and not sign (sign with an unsigned?) extending. >... The main problem is K&R's use of terms and fonts. No, actually, the main problem is that K&R C has only one unsigned type, namely unsigned int. Unsigned short, unsigned char, and unsigned long do not exist in K&R 1st ed. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris