From: cristy Date: Mon, 29 Apr 2013 08:29:35 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3783 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae0a3fcb5e88aba2468892d7710c322885d80fcd;p=imagemagick --- diff --git a/MagickCore/distort.c b/MagickCore/distort.c index 0ab1c0cef..4a38f5b8e 100644 --- a/MagickCore/distort.c +++ b/MagickCore/distort.c @@ -373,7 +373,7 @@ static inline double MagickRound(double x) /* Round the fraction to nearest integer. */ - if ((x-floor(x)) < (ceil(x)-x) + if ((x-floor(x)) < (ceil(x)-x)) return(floor(x)); return(ceil(x)); } diff --git a/MagickCore/quantize.c b/MagickCore/quantize.c index dd8b8b1ac..ba864706a 100644 --- a/MagickCore/quantize.c +++ b/MagickCore/quantize.c @@ -2342,7 +2342,7 @@ static inline double MagickRound(double x) /* Round the fraction to nearest integer. */ - if ((x-floor(x)) < (ceil(x)-x) + if ((x-floor(x)) < (ceil(x)-x)) return(floor(x)); return(ceil(x)); } diff --git a/MagickCore/transform.c b/MagickCore/transform.c index 94de5c44c..092f7943a 100644 --- a/MagickCore/transform.c +++ b/MagickCore/transform.c @@ -771,7 +771,7 @@ static inline double MagickRound(double x) /* Round the fraction to nearest integer. */ - if ((x-floor(x)) < (ceil(x)-x) + if ((x-floor(x)) < (ceil(x)-x)) return(floor(x)); return(ceil(x)); }