This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: nano-malloc assumes sizeof(int) >= sizeof(void*)


On Dec 15 22:42, DJ Delorie wrote:
> 
> I don't know if there's a better (i.e. more portable) way of
> aligning-up a pointer, but at least this moves the problem to
> platforms where pointers are bigger than "long" instead of "int".
> Found on msp430 large model, with the heap above the 64k boundary -
> malloc() was truncating addresses to 16 bits.  Ok?

Yep.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

Attachment: pgpkXGHnzZgkh.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]