diff --git a/gfx/src/nsRegion.cpp b/gfx/src/nsRegion.cpp index 61d3de51d67..ef14111dbc7 100644 --- a/gfx/src/nsRegion.cpp +++ b/gfx/src/nsRegion.cpp @@ -1292,7 +1292,7 @@ nsIntRegion nsRegion::ToOutsidePixels(nscoord aAppUnitsPerPixel) const { nsIntRegion result; nsRegionRectIterator rgnIter(*this); const nsRect *currentRect; - while (currentRect = rgnIter.Next()) { + while ((currentRect = rgnIter.Next())) { nsIntRect deviceRect = currentRect->ToOutsidePixels(aAppUnitsPerPixel); result.Or(result, deviceRect); }