diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-07 13:09:35 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-07 13:09:35 (GMT) |
commit | 0b13e7c1531351452703d6b9770194e53a3d3f69 (patch) | |
tree | 0a4fc2efc2674b48cebfa7b1058776aa3ec841e8 /Mac/Modules/dlg | |
parent | 89d017d072cce9a3baee8861b10818a401127f08 (diff) | |
download | cpython-0b13e7c1531351452703d6b9770194e53a3d3f69.zip cpython-0b13e7c1531351452703d6b9770194e53a3d3f69.tar.gz cpython-0b13e7c1531351452703d6b9770194e53a3d3f69.tar.bz2 |
Changed all (hopefully) uses of unsigned 16 bit value to use H format specifier, now that h is signed-only.
Diffstat (limited to 'Mac/Modules/dlg')
-rw-r--r-- | Mac/Modules/dlg/Dlgmodule.c | 4 | ||||
-rw-r--r-- | Mac/Modules/dlg/dlgsupport.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Modules/dlg/Dlgmodule.c b/Mac/Modules/dlg/Dlgmodule.c index 15f61f5..1b46cfc 100644 --- a/Mac/Modules/dlg/Dlgmodule.c +++ b/Mac/Modules/dlg/Dlgmodule.c @@ -659,7 +659,7 @@ static PyObject *DlgObj_SetModalDialogEventMask(_self, _args) PyObject *_res = NULL; OSStatus _err; EventMask inMask; - if (!PyArg_ParseTuple(_args, "h", + if (!PyArg_ParseTuple(_args, "H", &inMask)) return NULL; _err = SetModalDialogEventMask(_self->ob_itself, @@ -682,7 +682,7 @@ static PyObject *DlgObj_GetModalDialogEventMask(_self, _args) _err = GetModalDialogEventMask(_self->ob_itself, &outMask); if (_err != noErr) return PyMac_Error(_err); - _res = Py_BuildValue("h", + _res = Py_BuildValue("H", outMask); return _res; } diff --git a/Mac/Modules/dlg/dlgsupport.py b/Mac/Modules/dlg/dlgsupport.py index 78b6be2..e00b662 100644 --- a/Mac/Modules/dlg/dlgsupport.py +++ b/Mac/Modules/dlg/dlgsupport.py @@ -26,7 +26,7 @@ DialogItemType = Type("DialogItemType", "h") DialogItemIndexZeroBased = Type("DialogItemIndexZeroBased", "h") AlertType = Type("AlertType", "h") StringPtr = Str255 -EventMask = Type("EventMask", "h") +EventMask = Type("EventMask", "H") includestuff = includestuff + """ #include <Dialogs.h> |