fix integer for seek

This commit is contained in:
Mickael B 2017-07-22 10:43:43 -04:00 committed by Eric Soroos
parent 6869431c2b
commit bb889a59d6

View File

@ -200,7 +200,7 @@ class ImageFile(Image.Image):
for decoder_name, extents, offset, args in self.tile:
decoder = Image._getdecoder(self.mode, decoder_name,
args, self.decoderconfig)
seek(offset)
seek(int(offset))
decoder.setimage(self.im, extents)
if decoder.pulls_fd:
decoder.setfd(self.fp)