summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/icn
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/icn
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/icn')
-rw-r--r--Mac/Modules/icn/Icnmodule.c2
-rw-r--r--Mac/Modules/icn/icnsupport.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/Mac/Modules/icn/Icnmodule.c b/Mac/Modules/icn/Icnmodule.c
index dfa54d6..37aa6ff 100644
--- a/Mac/Modules/icn/Icnmodule.c
+++ b/Mac/Modules/icn/Icnmodule.c
@@ -746,7 +746,7 @@ static PyObject *Icn_GetIconRefOwners(_self, _args)
_err = GetIconRefOwners(theIconRef,
&owners);
if (_err != noErr) return PyMac_Error(_err);
- _res = Py_BuildValue("h",
+ _res = Py_BuildValue("H",
owners);
return _res;
}
diff --git a/Mac/Modules/icn/icnsupport.py b/Mac/Modules/icn/icnsupport.py
index 9ce66be..4345d9d 100644
--- a/Mac/Modules/icn/icnsupport.py
+++ b/Mac/Modules/icn/icnsupport.py
@@ -42,8 +42,8 @@ RGBColor = OpaqueType("RGBColor", "QdRGB")
# KeyMap = ArrayOutputBufferType("KeyMap")
#MacOSEventKind = Type("MacOSEventKind", "h") # Old-style
#MacOSEventMask = Type("MacOSEventMask", "h") # Old-style
-#EventMask = Type("EventMask", "h")
-#EventKind = Type("EventKind", "h")
+#EventMask = Type("EventMask", "H")
+#EventKind = Type("EventKind", "H")
includestuff = includestuff + """
#include <%s>""" % MACHEADERFILE + """