mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
struct.pack has become picky about h (short) and H (unsigned short).
This commit is contained in:
parent
339ecc61f8
commit
185f42d917
2 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue