Skip to content

Commit

Permalink
Make sure nvalues is int and not float for Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed May 26, 2014
1 parent 14c8d8a commit 5217a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PIL/SpiderImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def makeSpiderHeader(im):
if 1024%lenbyt != 0: labrec += 1
labbyt = labrec * lenbyt
hdr = []
nvalues = labbyt / 4
nvalues = int(labbyt / 4)
for i in range(nvalues):
hdr.append(0.0)

Expand Down

0 comments on commit 5217a52

Please sign in to comment.