# HG changeset patch # User Paul Boddie # Date 1444514058 -7200 # Node ID 5e99d4b0e15f2167ea1884f0b136fc9b479f8cfc # Parent e4db053e9a3bf460b3ee146fd1d01ee9cf8ce506 Made the numeric types explicit, even if it is superfluous. diff -r e4db053e9a3b -r 5e99d4b0e15f optimiserlib.py --- a/optimiserlib.py Sat Oct 10 19:12:46 2015 +0200 +++ b/optimiserlib.py Sat Oct 10 23:54:18 2015 +0200 @@ -244,9 +244,9 @@ for x in range(0, width): rgb = im.getpixel((x, y)) if saturate or desaturate: - rgb = saturate_rgb(rgb, saturate and 0.5 / saturate or 2 * desaturate) + rgb = saturate_rgb(rgb, saturate and 0.5 / saturate or 2.0 * desaturate) if darken or brighten: - rgb = amplify_rgb(rgb, brighten and 0.5 / brighten or 2 * darken) + rgb = amplify_rgb(rgb, brighten and 0.5 / brighten or 2.0 * darken) im.putpixel((x, y), rgb) def preview_image(im, half_resolution_preview=False):