[issue17919] AIX POLLNVAL definition causes problems

STINNER Victor report at bugs.python.org
Fri Dec 13 12:00:32 CET 2013


STINNER Victor added the comment:

+    if (uval > USHRT_MAX) {
+        PyErr_SetString(PyExc_OverflowError,
+                        "Python int too large for C unsigned int");

The message should be "C unsigned short".

The unit tests don't check that USHRT_MAX value is accepted.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17919>
_______________________________________


More information about the Python-bugs-list mailing list