Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watdaisy.UUCP Path: utzoo!watmath!watdaisy!ndiamond From: ndiamond@watdaisy.UUCP (Norman Diamond) Newsgroups: net.lang.c Subject: Re: conversion of short to unsigned it Message-ID: <7088@watdaisy.UUCP> Date: Mon, 18-Mar-85 22:42:35 EST Article-I.D.: watdaisy.7088 Posted: Mon Mar 18 22:42:35 1985 Date-Received: Tue, 19-Mar-85 06:14:41 EST References: <2125@ncrcae.UUCP> Organization: U of Waterloo, Ontario Lines: 16 > What's the proper conversion of a short to an unsigned int? > In otherwords should the conversion be a sign extension of the > short treated as an unsigned int after sign extension, or should > there be no sign extension? (int) (unsigned) x does not necessarily equal (unsigned) (int) x -- Norman Diamond UUCP: {decvax|utzoo|ihnp4|allegra}!watmath!watdaisy!ndiamond CSNET: ndiamond%watdaisy@waterloo.csnet ARPA: ndiamond%watdaisy%waterloo.csnet@csnet-relay.arpa "Opinions are those of the keyboard, and do not reflect on me or higher-ups."