This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13575] SSIZE_MAX defined as LONG_MAX is inconsistent with ssize_t, when __WORDSIZE != 64
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 13 Jul 2016 13:02:15 +0000
- Subject: [Bug libc/13575] SSIZE_MAX defined as LONG_MAX is inconsistent with ssize_t, when __WORDSIZE != 64
- Auto-submitted: auto-generated
- References: <bug-13575-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=13575
--- Comment #7 from Florian Weimer <fweimer at redhat dot com> ---
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))
--
You are receiving this mail because:
You are on the CC list for the bug.