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 <rep...@bugs.python.org> <http://bugs.python.org/issue17919> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com