struct.pack has become picky about h (short) and H (unsigned short).

This commit is contained in:
Jack Jansen 2000-10-22 21:59:23 +00:00
parent 339ecc61f8
commit 185f42d917
2 changed files with 2 additions and 2 deletions

View file

@ -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',