conversion of short to unsigned it

Henry Spencer henry at utzoo.UUCP
Thu Mar 28 04:27:06 AEST 1985


There was a certain vagueness about the definition of casts in the
V7 C reference manual; they were rather new.  In particular, it wasn't
clear whether they caused a conversion or just caused the compiler to
think a conversion had been done.  After some confusion, their semantics
were clarified, and the official word from DMR (and now from the ANSI
committee) is that casting to type foo is equivalent to assigning to a
temporary variable of type foo.  So yes, casts are conversions.
-- 
				Henry Spencer @ U of Toronto Zoology
				{allegra,ihnp4,linus,decvax}!utzoo!henry



More information about the Comp.lang.c mailing list