Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 5/3/83; site ukc.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!seismo!cmcl2!floyd!vax135!ukc!lfm From: lfm@ukc.UUCP (L.Marshall) Newsgroups: net.lang.c Subject: sizeof problems Message-ID: <4183@ukc.UUCP> Date: Mon, 21-May-84 02:58:13 EDT Article-I.D.: ukc.4183 Posted: Mon May 21 02:58:13 1984 Date-Received: Tue, 15-May-84 02:14:45 EDT Organization: Computing Lab. Kent University, England Lines: 17 There was another interesting sizeof problem with the V7 PDP11 compiler (I dont know if it affected any others) whereby combinations of negation and coercion applied to "sizeof" fell over. I cant remember the exact error but it was something like either - (long) sizeof(int) or (long) - sizeof(int) The result was not properly sign extended from 16 to 32 bits. I can dig out the exact details if anyone is interested. Lindsay F. Marshall uucp : ...!ukc!lfm ARPA : Lindsay_Marshall%NEWCASTLE@MIT-MULTICS post : Computing Laboratory, U of Newcastle upon Tyne, U.K. +44 - 632 - 329233 xtn 212