From: cristy Date: Sun, 14 Oct 2012 22:17:01 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4843 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfa3817bb5e38f95fdb2afcd321e3f0f5b65b563;p=imagemagick --- diff --git a/MagickCore/pixel-private.h b/MagickCore/pixel-private.h index 9614017c0..5f37e4454 100644 --- a/MagickCore/pixel-private.h +++ b/MagickCore/pixel-private.h @@ -24,10 +24,13 @@ extern "C" { static inline double MagickEpsilonReciprocal(const double x) { - double sign = x < (double) 0.0 ? (double) -1.0 : - (double) 1.0; - return((sign*x) >= MagickEpsilon ? (double) 1.0/x : sign*( - (double) 1.0/MagickEpsilon)); + double + sign; + + sign=x < (double) 0.0 ? (double) -1.0 : (double) 1.0; + if ((sign*x) >= MagickEpsilon) + return(1.0/x); + return(sign*((double) 1.0/MagickEpsilon)); } #if defined(__cplusplus) || defined(c_plusplus)