]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 6 Apr 2015 11:46:41 +0000 (11:46 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 6 Apr 2015 11:46:41 +0000 (11:46 +0000)
MagickCore/draw.c

index 547a21885d2e1307763b94943463a0c6ebf74b9b..8c3f5dc6f1cb4d2993248084df3d40ca3706dbdf 100644 (file)
@@ -5763,12 +5763,10 @@ static void TraceSquareLinecap(PrimitiveInfo *primitive_info,
 
 static inline double DrawEpsilonReciprocal(const double x)
 {
-#define DrawEpsilon  ((double) 1.0e-6)
+#define DrawEpsilon  (1.0e-6)
 
-  double sign = x < (double) 0.0 ? (double) -1.0 :
-    (double) 1.0;
-  return((sign*x) >= DrawEpsilon ? (double) 1.0/x : sign*(
-    (double) 1.0/DrawEpsilon));
+  double sign = x < 0.0 ? -1.0 : 1.0;
+  return((sign*x) >= DrawEpsilon ? 1.0/x : sign*(1.0/DrawEpsilon));
 }
 
 static PrimitiveInfo *TraceStrokePolygon(const DrawInfo *draw_info,