WRaster: Changed equality/inequality comparison on floating point number
commit8ef38e99109c62f52d9c00c69dfae2531b16e472
authorChristophe CURIS <christophe.curis@free.fr>
Fri, 10 May 2013 22:07:16 +0000 (11 00:07 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Fri, 10 May 2013 23:17:27 +0000 (11 00:17 +0100)
tree17ecc35b7ecde2048e987ab905d2788754c3d6c5
parent80a59696e5ac90dec0b7c230a727d524d631d9e0
WRaster: Changed equality/inequality comparison on floating point number

The equality comparison (a == b) is known to be a dangerous trap
when floating-point arithmetics are involved. This patch changes
all the cases which try to do this to a safer check.
wrlib/png.c
wrlib/rotate.c
wrlib/scale.c