Kaydet (Commit) 37a3f963 authored tarafından Caolán McNamara's avatar Caolán McNamara

WaE: assuming signed overflow does not occur when assuming...

that (X + c) < X is always false [-Wstrict-overflow]

Change-Id: I63880bf27ab7e34eb9e0be682b39b80b71d65103
üst 32eaa77d
......@@ -339,8 +339,15 @@ namespace
{
if( !mpDamage )
return;
basegfx::B2IPoint aEnd( rDamagePoint.getX() + 1,
rDamagePoint.getY() + 1 );
sal_Int32 nX(rDamagePoint.getX());
sal_Int32 nY(rDamagePoint.getY());
if (nX < SAL_MAX_INT32)
++nX;
if (nY < SAL_MAX_INT32)
++nY;
basegfx::B2IPoint aEnd( nX, nY );
damaged( basegfx::B2IBox( rDamagePoint, aEnd ) );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment