From 775307113bf7c16490829af40467a3defab6443a Mon Sep 17 00:00:00 2001 From: hugovk Date: Tue, 1 Jul 2014 22:36:56 +0300 Subject: [PATCH] Ensure rowbytes is an integer (fix for Python 3) --- PIL/PalmImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/PalmImagePlugin.py b/PIL/PalmImagePlugin.py index 5f4c08490..bba1de8bb 100644 --- a/PIL/PalmImagePlugin.py +++ b/PIL/PalmImagePlugin.py @@ -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"]