if (!ExistingCompletionPort && PyErr_Occurred()) {
goto exit;
}
- CompletionKey = PyLong_AsVoidPtr(args[2]);
+ CompletionKey = (uintptr_t)PyLong_AsVoidPtr(args[2]);
if (!CompletionKey && PyErr_Occurred()) {
goto exit;
}
if (!_PyLong_UnsignedLong_Converter(args[1], &NumberOfBytes)) {
goto exit;
}
- CompletionKey = PyLong_AsVoidPtr(args[2]);
+ CompletionKey = (uintptr_t)PyLong_AsVoidPtr(args[2]);
if (!CompletionKey && PyErr_Occurred()) {
goto exit;
}
return return_value;
}
-/*[clinic end generated code: output=d90cda84e49a7c23 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=edd05b7a6c9c3aac input=a9049054013a1b77]*/
class ULONG_PTR_converter(pointer_converter):
type = 'ULONG_PTR'
+ def parse_arg(self, argname, displayname):
+ return """
+ {paramname} = (uintptr_t)PyLong_AsVoidPtr({argname});
+ if (!{paramname} && PyErr_Occurred()) {{{{
+ goto exit;
+ }}}}
+ """.format(argname=argname, paramname=self.parser_name)
+
class DWORD_converter(unsigned_long_converter):
type = 'DWORD'
class BOOL_converter(int_converter):
type = 'BOOL'
[python start generated code]*/
-/*[python end generated code: output=da39a3ee5e6b4b0d input=a19133a9e14fae9c]*/
+/*[python end generated code: output=da39a3ee5e6b4b0d input=8a07ea3018f4cec8]*/
/*[clinic input]
module _overlapped