Path: chuka.playstation.co.uk!news From: James Russell Newsgroups: scee.yaroze.programming.3d_graphics Subject: Re: GsLinkObject4 prototype error? Date: Tue, 11 Aug 1998 18:21:30 +0100 Organization: Sony Computer Entertainment Europe Lines: 19 Message-ID: <35D07D9A.58DF37BA@scee.sony.co.uk> References: <35CF88D3.4762@manc.u-net.com> <35CFA154.5EAB@manc.u-net.com> <35D03B22.5D50@manc.u-net.com> <35D05070.348AE2E@scee.sony.co.uk> <01bdc542$ea168620$230b0a0a@Angela1.intelligent-group.com> NNTP-Posting-Host: mailgate.scee.sony.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5b1 [en] (Win95; I) X-Accept-Language: en Craig Graham wrote: > > > u_long *memaddress = (u_long *)0x80091234; > > GsLinkObject4((u_long)(memaddress + 3), .... > > Don't do that. I think what I wrote should work. I put the memaddress + 3 in parentheses, and because memaddress was a u_long*, it would be the same as &memaddress[3], calculated _before_ the cast. Cheers, James -- == James_Russell@scee.sony.co.uk +44 (171) 447-1626 == Developer Support Engineer - Sony Computer Entertainment Europe One Chicken to bring them all and in the darkness bind them.