From 6f6856b47bb0fe0c8b1ecb43bf2bb6728f322ddc Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 31 Jan 2026 13:23:16 -0500 Subject: [PATCH] eliminate compiler exception --- coders/yuv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/coders/yuv.c b/coders/yuv.c index 8507fae320..261efb7fc4 100644 --- a/coders/yuv.c +++ b/coders/yuv.c @@ -165,8 +165,8 @@ static Image *ReadYUVImage(const ImageInfo *image_info,ExceptionInfo *exception) vertical_factor=horizontal_factor; if ((flags & SigmaValue) != 0) vertical_factor=(ssize_t) geometry_info.sigma; - if ((horizontal_factor != 1) && (horizontal_factor != 2) || - (vertical_factor != 1) && (vertical_factor != 2)) + if (((horizontal_factor != 1) && (horizontal_factor != 2)) || + ((vertical_factor != 1) && (vertical_factor != 2))) ThrowReaderException(CorruptImageError,"UnexpectedSamplingFactor"); } if ((interlace == UndefinedInterlace) || @@ -670,8 +670,8 @@ static MagickBooleanType WriteYUVImage(const ImageInfo *image_info,Image *image, vertical_factor=horizontal_factor; if ((flags & SigmaValue) != 0) vertical_factor=(ssize_t) geometry_info.sigma; - if ((horizontal_factor != 1) && (horizontal_factor != 2) || - (vertical_factor != 1) && (vertical_factor != 2)) + if (((horizontal_factor != 1) && (horizontal_factor != 2)) || + ((vertical_factor != 1) && (vertical_factor != 2))) ThrowWriterException(CorruptImageError,"UnexpectedSamplingFactor"); } if ((interlace == UndefinedInterlace) ||