Adaptation to py3k.

This commit is contained in:
Amaury Forgeot d'Arc 2008-06-11 18:12:34 +00:00
parent 2c906f1540
commit 245671c64a
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ win32_SetNamedPipeHandleState(PyObject *self, PyObject *args)
for (i = 0 ; i < 3 ; i++) {
if (oArgs[i] != Py_None) {
dwArgs[i] = PyInt_AsUnsignedLongMask(oArgs[i]);
dwArgs[i] = PyLong_AsUnsignedLongMask(oArgs[i]);
if (PyErr_Occurred())
return NULL;
pArgs[i] = &dwArgs[i];