Skip to content

Commit 93e6c08

Browse files
author
Alex Ball
committed
Floor division fix
Oops #py3
1 parent 907ac61 commit 93e6c08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PIL/ImageOps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def autocontrast_preserve(image, cutoff=0, ignore=None):
207207
else:
208208
scale = 255.0 / (hi - lo)
209209
offset = -lo * scale
210-
for layer in range(len(histogram) / 256):
210+
for layer in range(len(histogram) // 256):
211211
for ix in range(256):
212212
ix = int(ix * scale + offset)
213213
if ix < 0:

0 commit comments

Comments
 (0)