From: Cristy Date: Tue, 5 Jun 2018 00:57:00 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-39~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dacb665dddaa3d2606de8542a45d3d757b66812e;p=imagemagick ... --- diff --git a/MagickCore/fx.c b/MagickCore/fx.c index 9def5a245..a89a4444a 100644 --- a/MagickCore/fx.c +++ b/MagickCore/fx.c @@ -5966,7 +5966,7 @@ MagickExport Image *WaveletDenoiseImage(const Image *image, p=kernel+id*image->columns; q=pixels+y*image->columns; - HatTransform(q+high_pass,1,image->columns,(size_t) (1 << level),p); + HatTransform(q+high_pass,1,image->columns,(size_t) (1UL << level),p); q+=low_pass; for (x=0; x < (ssize_t) image->columns; x++) *q++=(*p++); @@ -5989,7 +5989,7 @@ MagickExport Image *WaveletDenoiseImage(const Image *image, p=kernel+id*image->rows; q=pixels+x+low_pass; - HatTransform(q,image->columns,image->rows,(size_t) (1 << level),p); + HatTransform(q,image->columns,image->rows,(size_t) (1UL << level),p); for (y=0; y < (ssize_t) image->rows; y++) { *q=(*p++);