mirror of https://github.com/python/cpython
Oops, WaitNextEvent was hand-coded, and it also needed the h->H conversion for PyArg_ParseTuple format strings.
This commit is contained in:
parent
5bdbabd203
commit
4fb67f4659
|
@ -328,7 +328,7 @@ static PyObject *Evt_WaitNextEvent(_self, _args)
|
|||
UInt32 sleep;
|
||||
Handle mouseregion = (Handle)0;
|
||||
|
||||
if (!PyArg_ParseTuple(_args, "hl|O&",
|
||||
if (!PyArg_ParseTuple(_args, "Hl|O&",
|
||||
&eventMask,
|
||||
&sleep,
|
||||
OptResObj_Convert, &mouseregion))
|
||||
|
|
|
@ -79,7 +79,7 @@ EventRecord theEvent;
|
|||
UInt32 sleep;
|
||||
Handle mouseregion = (Handle)0;
|
||||
|
||||
if (!PyArg_ParseTuple(_args, "hl|O&",
|
||||
if (!PyArg_ParseTuple(_args, "Hl|O&",
|
||||
&eventMask,
|
||||
&sleep,
|
||||
OptResObj_Convert, &mouseregion))
|
||||
|
|
Loading…
Reference in New Issue