Path: utzoo!attcan!uunet!lll-winken!ames!haven!mimsy!tank!shamash!nic.MR.NET!thor!mackenzi From: mackenzi@thor.stolaf.edu (David MacKenzie) Newsgroups: comp.lang.c Subject: Re: preventing sign extension Keywords: bitmask sign extension Message-ID: <908@thor.stolaf.edu> Date: 11 Jan 89 05:20:34 GMT References: <905@thor.stolaf.edu> Reply-To: edf@rocky2.rockefeller.edu Distribution: na Organization: Environmental Defense Fund Lines: 9 Chris Torek has pointed out that the listing in DDJ is probably missing a tilde, and thus that >#define INTMASK (long) ((unsigned) (0)) should be >#define INTMASK (long) ((unsigned) (~0)) and that seems right to me. Thanks, Chris. David MacKenzie edf@rocky2.rockefeller.edu