summaryrefslogtreecommitdiffstats
path: root/Mac/Lib
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2000-10-22 21:59:23 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2000-10-22 21:59:23 (GMT)
commit185f42d917f2b66f366ea59260bd0543bb9849c1 (patch)
tree6c29156603936fee6ecc2ddd3c0e514f085c5f15 /Mac/Lib
parent339ecc61f81703613d8b5536b35de3dcf745a9ad (diff)
downloadcpython-185f42d917f2b66f366ea59260bd0543bb9849c1.zip
cpython-185f42d917f2b66f366ea59260bd0543bb9849c1.tar.gz
cpython-185f42d917f2b66f366ea59260bd0543bb9849c1.tar.bz2
struct.pack has become picky about h (short) and H (unsigned short).
Diffstat (limited to 'Mac/Lib')
-rw-r--r--Mac/Lib/PixMapWrapper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mac/Lib/PixMapWrapper.py b/Mac/Lib/PixMapWrapper.py
index 39e5f8e..72a64ba 100644
--- a/Mac/Lib/PixMapWrapper.py
+++ b/Mac/Lib/PixMapWrapper.py
@@ -15,7 +15,7 @@ import imgformat
# PixMap data structure element format (as used with struct)
_pmElemFormat = {
'baseAddr':'l', # address of pixel data
- 'rowBytes':'h', # bytes per row, plus 0x8000
+ 'rowBytes':'H', # bytes per row, plus 0x8000
'bounds':'hhhh', # coordinates imposed over pixel data
'top':'h',
'left':'h',