Path: utzoo!attcan!uunet!husc6!mailrus!uwmcsd1!ig!agate!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: comp.sys.amiga.tech Subject: Re: Manxifying Lattice Code Message-ID: <8808061908.AA02259@cory.Berkeley.EDU> Date: 6 Aug 88 19:08:47 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 16 >: pplanet = (tplanet *) malloc (sizeof(tplanet)); > >How big is sizeof(tplanet)? Manx malloc() wants its argument to be a word, so >if it's bigger than 64K it won't work correctly. > >If that's the case, try AllocMem(). Now wait just a moment here. If the original program was written for 32 bit integers, then simply use the 32 bit integer option for Aztec C (+L), and *poof* malloc() takes an int = 32 bits. If the original program was written for 16 bit integers, then the malloc call in the original program was known to take only a word and thus that is NOT the problem. Simply compile without the +L option. -Matt