Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: conversion of short to unsigned it Message-ID: <5354@utzoo.UUCP> Date: Wed, 27-Mar-85 13:27:06 EST Article-I.D.: utzoo.5354 Posted: Wed Mar 27 13:27:06 1985 Date-Received: Wed, 27-Mar-85 13:27:06 EST References: <2125@ncrcae.UUCP> <7088@watdaisy.UUCP> <2128@ncrcae.UUCP> Organization: U of Toronto Zoology Lines: 10 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