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]

[patch] open_memstream 16bit portability issue.


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


Attachment: newlib-libc-open_memstream.diff
Description: Text document


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