From 46cb3d3ea6d6be047667fa6b9dbccd4b3eed83ff Mon Sep 17 00:00:00 2001 From: John Scipione Date: Mon, 22 Jul 2013 13:42:48 -0400 Subject: [PATCH] IconUtils: Add parens to fix warnings Fixes #9888 --- src/libs/icon/IconUtils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/icon/IconUtils.cpp b/src/libs/icon/IconUtils.cpp index 81630e2bfc..6400c4d87a 100644 --- a/src/libs/icon/IconUtils.cpp +++ b/src/libs/icon/IconUtils.cpp @@ -646,9 +646,9 @@ BIconUtils::ConvertFromCMAP8(const uint8* src, uint32 width, uint32 height, // check for downscaling or integer multiple scaling if (dstWidth < width || dstHeight < height - || dstWidth == 2 * width && dstHeight == 2 * height - || dstWidth == 3 * width && dstHeight == 3 * height - || dstWidth == 4 * width && dstHeight == 4 * height) { + || (dstWidth == 2 * width && dstHeight == 2 * height) + || (dstWidth == 3 * width && dstHeight == 3 * height) + || (dstWidth == 4 * width && dstHeight == 4 * height)) { BBitmap* converted = new BBitmap(BRect(0, 0, width - 1, height - 1), result->ColorSpace()); converted->ImportBits(src, height * srcBPR, srcBPR, 0, B_CMAP8);