mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Changed all (hopefully) uses of unsigned 16 bit value to use H format specifier, now that h is signed-only.
This commit is contained in:
parent
89d017d072
commit
0b13e7c153
23 changed files with 86 additions and 86 deletions
|
@ -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,
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue