[Bug libc/13575] SSIZE_MAX defined as LONG_MAX is inconsistent with ssize_t, when __WORDSIZE != 64
eblake at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Jul 13 13:07:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=13575
--- Comment #8 from Eric Blake <eblake at redhat dot com> ---
(In reply to Florian Weimer from comment #7)
> I think the proposed change is still incorrect on s390, where ssize_t is
> long int.
>
> Would this be a suitable generic definition?
>
> #define SSIZE_MAX ((ssize_t) ((~(size_t) 0) / 2))
No, because SSIZE_MAX must be usable in #if preprocessor conditionals.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list