Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 6/7/83; site hao.UUCP Path: utzoo!linus!decvax!ittvax!dcdwest!sdcsvax!bmcg!cepu!hao!woods From: woods@hao.UUCP Newsgroups: net.lang.c Subject: Re: pointer -> long conversion Message-ID: <1050@hao.UUCP> Date: Tue, 10-Jul-84 23:57:08 EDT Article-I.D.: hao.1050 Posted: Tue Jul 10 23:57:08 1984 Date-Received: Thu, 12-Jul-84 00:38:44 EDT References: <831@bbncca.ARPA> Organization: High Altitude Obs./NCAR, Boulder CO Lines: 16 As usual, I don't know what the official manual says. All I know is, a negative pointer value is total nonsense. Therefore it seems to me that *any* pointer value assigned to an integer (or long) should be positive. So, I would advocate *no* sign extension. I would be interested to hear if someone can point out a reference stating what a compiler should do, or one that explicitly says that this is implemen- tation dependent. --Greg -- {ucbvax!hplabs | allegra!nbires | decvax!stcvax | harpo!seismo | ihnp4!stcvax} !hao!woods "Cherish well your thoughts, keep a tight grip on your booze 'Cause thinkin' and drinkin' are all I have today"