From: Jack Jansen Date: Mon, 24 Jul 2000 19:59:17 +0000 (+0000) Subject: Oops, WaitNextEvent was hand-coded, and it also needed the h->H conversion for PyArg_... X-Git-Tag: v2.0b1~728 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fb67f46595e53f8637b8aea2afa5e852f26abc7;p=thirdparty%2FPython%2Fcpython.git Oops, WaitNextEvent was hand-coded, and it also needed the h->H conversion for PyArg_ParseTuple format strings. --- diff --git a/Mac/Modules/evt/Evtmodule.c b/Mac/Modules/evt/Evtmodule.c index 093c470e9018..c161c75e5201 100644 --- a/Mac/Modules/evt/Evtmodule.c +++ b/Mac/Modules/evt/Evtmodule.c @@ -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)) diff --git a/Mac/Modules/evt/evtsupport.py b/Mac/Modules/evt/evtsupport.py index d4fb5953b139..7725ded54baa 100644 --- a/Mac/Modules/evt/evtsupport.py +++ b/Mac/Modules/evt/evtsupport.py @@ -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))