Avoid rounding errors in --resize.

Problem reported by Paul Kane.
To version 1.71.