From dacb665dddaa3d2606de8542a45d3d757b66812e Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 4 Jun 2018 20:57:00 -0400 Subject: [PATCH] ... --- MagickCore/fx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++); -- 2.40.0