summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/drag
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-07-07 13:09:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-07-07 13:09:35 (GMT)
commit0b13e7c1531351452703d6b9770194e53a3d3f69 (patch)
tree0a4fc2efc2674b48cebfa7b1058776aa3ec841e8 /Mac/Modules/drag
parent89d017d072cce9a3baee8861b10818a401127f08 (diff)
downloadcpython-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/drag')
-rw-r--r--Mac/Modules/drag/Dragmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mac/Modules/drag/Dragmodule.c b/Mac/Modules/drag/Dragmodule.c
index 0775286..9fcc125 100644
--- a/Mac/Modules/drag/Dragmodule.c
+++ b/Mac/Modules/drag/Dragmodule.c
@@ -248,7 +248,7 @@ static PyObject *DragObj_CountDragItems(_self, _args)
_err = CountDragItems(_self->ob_itself,
&numItems);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
numItems);
return _res;
}
@@ -261,7 +261,7 @@ static PyObject *DragObj_GetDragItemReferenceNumber(_self, _args)
OSErr _err;
UInt16 index;
ItemReference theItemRef;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&index))
return NULL;
_err = GetDragItemReferenceNumber(_self->ob_itself,
@@ -288,7 +288,7 @@ static PyObject *DragObj_CountDragItemFlavors(_self, _args)
theItemRef,
&numFlavors);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
numFlavors);
return _res;
}
@@ -302,7 +302,7 @@ static PyObject *DragObj_GetFlavorType(_self, _args)
ItemReference theItemRef;
UInt16 index;
FlavorType theType;
- if (!PyArg_ParseTuple(_args, "lh",
+ if (!PyArg_ParseTuple(_args, "lH",
&theItemRef,
&index))
return NULL;