IconUtils: Add parens to fix warnings

Fixes #9888
This commit is contained in:
John Scipione 2013-07-22 13:42:48 -04:00
parent e66e2a2535
commit 46cb3d3ea6

View File

@ -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);