Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!genrad!decvax!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga Subject: Re: AllocMem() with 16-bit Manx Message-ID: <8709021843.AA22198@cory.Berkeley.EDU> Date: Wed, 2-Sep-87 14:43:29 EDT Article-I.D.: cory.8709021843.AA22198 Posted: Wed Sep 2 14:43:29 1987 Date-Received: Sat, 5-Sep-87 06:51:50 EDT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 13 >SpriteHead = (struct VSprite *)AllocMem(sizeof(struct VSprite), MEMF_PUBLIC | > MEMF_CLEAR); extern void *AllocMem(); SpriteHead = AllocMem((long)sizeof(struct VSprite), MEMF_PUBLIC|MEMF_CLEAR); The size argument must be a longword. When you compile with the 16-bit Aztec C sizeof() returns a short. -Matt