]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Mon, 20 Sep 2010 00:29:31 +0000 (00:29 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Mon, 20 Sep 2010 00:29:31 +0000 (00:29 +0000)
magick/resample.c

index a54276dcc0788fd921be8010c2d04c4a78435a48..21e212b449f632bba5094fa7e75c7c13e3ccf722 100644 (file)
@@ -1408,8 +1408,8 @@ MagickExport void ScaleResampleFilter(ResampleFilter *resample_filter,
   /* Check the absolute area of the Parallogram involved...
    * This limit needs more work, as it gets too slow for
    * larger images involved with tiled views of the horizon. */
-  if ( resample_filter->Uwidth * resample_filter->Vlimit
-         > 4*resample_filter->image_area ) {
+  if ( (resample_filter->Uwidth * resample_filter->Vlimit)
+         > (4.0*resample_filter->image_area)) {
     resample_filter->limit_reached = MagickTrue;
     return;
   }