]> granicus.if.org Git - python/commitdiff
Adaptation to py3k.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Wed, 11 Jun 2008 18:12:34 +0000 (18:12 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Wed, 11 Jun 2008 18:12:34 +0000 (18:12 +0000)
Modules/_multiprocessing/win32_functions.c

index 2bb113490a5d43a73c224d6559c5a260dc4c0dc0..cd98b633bcfeb413603ccd075229cc0c114fbfb4 100644 (file)
@@ -176,7 +176,7 @@ win32_SetNamedPipeHandleState(PyObject *self, PyObject *args)
 \r
        for (i = 0 ; i < 3 ; i++) {\r
                if (oArgs[i] != Py_None) {\r
-                       dwArgs[i] = PyInt_AsUnsignedLongMask(oArgs[i]);\r
+                       dwArgs[i] = PyLong_AsUnsignedLongMask(oArgs[i]);\r
                        if (PyErr_Occurred())\r
                                return NULL;\r
                        pArgs[i] = &dwArgs[i];\r