[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mxalloc()



On Mon, 8 Sep 1997, Konrad M.Kokoszkiewicz wrote:

> > I have a problem with Mxalloc() here, it looks like it allocates 2
> > megs when I asks for 256 bytes...
> > 
> > 	AVtext = (char*) Mxalloc(256, 0x0003|0x0028);
> 
> Have you checked, what the compiled code looks like? I.e. what 
> the compiler does from this "256"? :)
> 
> And what compiler, btw.?

It turned out to be a bug in mintlibs (I'm using a PureC-compile of
PL46 I found a few months ago.), if I link it with the original
PCTOSLIB-library it works. 


/*
** Jo Even Skarstein    http://www.stud.ntnu.no/~josk/
**
**    beer - maria mckee - atari falcon - babylon 5
*/