Path: utzoo!attcan!uunet!nih-csl!lhc!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Re: Color PixMap, the Clut and Think C Problem Message-ID: <1990Oct7.182227.3693@eng.umd.edu> Date: 7 Oct 90 18:22:27 GMT References: <380@goya.dit.upm.es> <12464@crdgw1.crd.ge.com> Sender: news@eng.umd.edu (The News System) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 13 In article sr0o+@andrew.cmu.edu (Steven Ritter) writes: >I ran into the same problem. This seems to be a bug in the Think C >compiler. If you code it as: > err = HandToHand((Handle *)(&ourCMHandle)); >instead of > err = HandToHand(&((Handle)ourCMHandle)); Excuse my K&R, but I don't even think that second one is legal C. (typecasts and reference don't mix) -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu .sig under construction, like the rest of this campus.