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/ctl | |
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/ctl')
-rw-r--r-- | Mac/Modules/ctl/Ctlmodule.c | 6 | ||||
-rw-r--r-- | Mac/Modules/ctl/ctlsupport.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/ctl/Ctlmodule.c b/Mac/Modules/ctl/Ctlmodule.c index 20e09cc..cafe0d6 100644 --- a/Mac/Modules/ctl/Ctlmodule.c +++ b/Mac/Modules/ctl/Ctlmodule.c @@ -377,7 +377,7 @@ static PyObject *CtlObj_DragControl(_self, _args) Rect limitRect; Rect slopRect; DragConstraint axis; - if (!PyArg_ParseTuple(_args, "O&O&O&h", + if (!PyArg_ParseTuple(_args, "O&O&O&H", PyMac_GetPoint, &startPoint, PyMac_GetRect, &limitRect, PyMac_GetRect, &slopRect, @@ -1080,7 +1080,7 @@ static PyObject *CtlObj_CountSubControls(_self, _args) _err = CountSubControls(_self->ob_itself, &outNumChildren); if (_err != noErr) return PyMac_Error(_err); - _res = Py_BuildValue("h", + _res = Py_BuildValue("H", outNumChildren); return _res; } @@ -1093,7 +1093,7 @@ static PyObject *CtlObj_GetIndexedSubControl(_self, _args) OSErr _err; UInt16 inIndex; ControlHandle outSubControl; - if (!PyArg_ParseTuple(_args, "h", + if (!PyArg_ParseTuple(_args, "H", &inIndex)) return NULL; _err = GetIndexedSubControl(_self->ob_itself, diff --git a/Mac/Modules/ctl/ctlsupport.py b/Mac/Modules/ctl/ctlsupport.py index 912514a..0623400 100644 --- a/Mac/Modules/ctl/ctlsupport.py +++ b/Mac/Modules/ctl/ctlsupport.py @@ -29,7 +29,7 @@ RgnHandle = OpaqueByValueType("RgnHandle", "ResObj") CCTabHandle = OpaqueByValueType("CCTabHandle", "ResObj") AuxCtlHandle = OpaqueByValueType("AuxCtlHandle", "ResObj") ControlPartCode = Type("ControlPartCode", "h") -DragConstraint = Type("DragConstraint", "h") +DragConstraint = Type("DragConstraint", "H") ControlVariant = Type("ControlVariant", "h") IconTransformType = Type("IconTransformType", "h") ControlButtonGraphicAlignment = Type("ControlButtonGraphicAlignment", "h") |