Ensure rowbytes is an integer (fix for Python 3)

This commit is contained in:
hugovk 2014-07-01 22:36:56 +03:00
parent 3807af79e3
commit 775307113b

View File

@ -180,7 +180,7 @@ def _save(im, fp, filename, check=0):
cols = im.size[0]
rows = im.size[1]
rowbytes = ((cols + (16//bpp - 1)) / (16 // bpp)) * 2
rowbytes = int((cols + (16//bpp - 1)) / (16 // bpp)) * 2
transparent_index = 0
compression_type = _COMPRESSION_TYPES["none"]