Floor division fix

Oops #py3
This commit is contained in:
Alex Ball 2015-05-31 10:59:19 -04:00
parent 907ac614f0
commit 93e6c08d30

View File

@ -207,7 +207,7 @@ def autocontrast_preserve(image, cutoff=0, ignore=None):
else:
scale = 255.0 / (hi - lo)
offset = -lo * scale
for layer in range(len(histogram) / 256):
for layer in range(len(histogram) // 256):
for ix in range(256):
ix = int(ix * scale + offset)
if ix < 0: