[issue17919] AIX POLLNVAL definition causes problems
STINNER Victor
report at bugs.python.org
Fri Dec 13 12:04:18 CET 2013
STINNER Victor added the comment:
With poll_events_mask_overflow.patch, the following hack can maybe be removed?
/* The &0xffff is a workaround for AIX. 'revents'
is a 16-bit short, and IBM assigned POLLNVAL
to be 0x8000, so the conversion to int results
in a negative number. See SF bug #923315. */
num = PyLong_FromLong(self->ufds[i].revents & 0xffff);
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17919>
_______________________________________
More information about the Python-bugs-list
mailing list