summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/win
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/win
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/win')
-rw-r--r--Mac/Modules/win/Winmodule.c6
-rw-r--r--Mac/Modules/win/winsupport.py3
2 files changed, 4 insertions, 5 deletions
diff --git a/Mac/Modules/win/Winmodule.c b/Mac/Modules/win/Winmodule.c
index ffd8b0b..2ad1d60 100644
--- a/Mac/Modules/win/Winmodule.c
+++ b/Mac/Modules/win/Winmodule.c
@@ -525,7 +525,7 @@ static PyObject *WinObj_GetWindowRegion(_self, _args)
OSStatus _err;
WindowRegionCode inRegionCode;
RgnHandle ioWinRgn;
- if (!PyArg_ParseTuple(_args, "hO&",
+ if (!PyArg_ParseTuple(_args, "HO&",
&inRegionCode,
ResObj_Convert, &ioWinRgn))
return NULL;
@@ -1110,7 +1110,7 @@ static PyObject *WinObj_SetWindowBounds(_self, _args)
OSStatus _err;
WindowRegionCode regionCode;
Rect globalBounds;
- if (!PyArg_ParseTuple(_args, "hO&",
+ if (!PyArg_ParseTuple(_args, "HO&",
&regionCode,
PyMac_GetRect, &globalBounds))
return NULL;
@@ -1131,7 +1131,7 @@ static PyObject *WinObj_GetWindowBounds(_self, _args)
OSStatus _err;
WindowRegionCode regionCode;
Rect globalBounds;
- if (!PyArg_ParseTuple(_args, "h",
+ if (!PyArg_ParseTuple(_args, "H",
&regionCode))
return NULL;
_err = GetWindowBounds(_self->ob_itself,
diff --git a/Mac/Modules/win/winsupport.py b/Mac/Modules/win/winsupport.py
index cc1c750..5ee6cf3 100644
--- a/Mac/Modules/win/winsupport.py
+++ b/Mac/Modules/win/winsupport.py
@@ -37,13 +37,12 @@ PixPatHandle = OpaqueByValueType("PixPatHandle", "ResObj")
AliasHandle = OpaqueByValueType("AliasHandle", "ResObj")
IconRef = OpaqueByValueType("IconRef", "ResObj")
-WindowRegionCode = Type("WindowRegionCode", "h")
+WindowRegionCode = Type("WindowRegionCode", "H")
WindowClass = Type("WindowClass", "l")
WindowAttributes = Type("WindowAttributes", "l")
WindowPositionMethod = Type("WindowPositionMethod", "l")
WindowTransitionEffect = Type("WindowTransitionEffect", "l")
WindowTransitionAction = Type("WindowTransitionAction", "l")
-WindowRegionCode = Type("WindowRegionCode", "h")
RGBColor = OpaqueType("RGBColor", "QdRGB")
PropertyCreator = OSTypeType("PropertyCreator")
PropertyTag = OSTypeType("PropertyTag")