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: [patch] open_memstream 16bit portability issue.


On 01/03/2011 07:31 PM, Ralf Corsepius wrote:
Hi,

another issue:

internal_open_memstream_r() in libc/stdio/open_memstream.c presumes
size_t to accept 64*1024 (0x10000).

This is not applicable on 16-bit targets (sizeof(size_t) == 2). GCC
warns about this.

The patch works around this issue by disabling the code in question on
targets whose SIZE_MAX is less than 64*1024.

Ralf



Patch applied.


-- Jeff J.


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