Changed all (hopefully) uses of unsigned 16 bit value to use H format specifier, now that h is signed-only.
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 @@
_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 @@
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 @@
theItemRef,
&numFlavors);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
numFlavors);
return _res;
}
@@ -302,7 +302,7 @@
ItemReference theItemRef;
UInt16 index;
FlavorType theType;
- if (!PyArg_ParseTuple(_args, "lh",
+ if (!PyArg_ParseTuple(_args, "lH",
&theItemRef,
&index))
return NULL;