]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Oops, WaitNextEvent was hand-coded, and it also needed the h->H conversion for PyArg_...
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 24 Jul 2000 19:59:17 +0000 (19:59 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 24 Jul 2000 19:59:17 +0000 (19:59 +0000)
Mac/Modules/evt/Evtmodule.c
Mac/Modules/evt/evtsupport.py

index 093c470e9018b0acfe125981ff11d57bec15c702..c161c75e52011c9ad1866e11b2b595bf0800a0ad 100644 (file)
@@ -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))
index d4fb5953b1397bb6308c0b40dea1722c5790cb62..7725ded54baa92e451ee24ab190a3514c6406761 100644 (file)
@@ -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))