[patch] open_memstream 16bit portability issue.
Jeff Johnston
jjohnstn@redhat.com
Wed Jan 5 17:39:00 GMT 2011
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.
More information about the Newlib
mailing list