Add parentheses for clarity where needed (IDE0048)

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 09:10:18 -07:00
1 親 553c7a4014
コミット ce1097e7d9
47ファイル変更
+222 -198

検索条件に一致するファイルはありません

@@ -485,7 +485,7 @@ unsafe partial struct D2D1ResourceTextureManagerImpl
(dimensions > 2 ? z * strides[1] : 0);
byte* destinationDataPlane =
@this->data +
(dimensions > 2 ? minimumExtents[2] * @this->strides[1] + z * @this->strides[1] : 0) +
(dimensions > 2 ? (minimumExtents[2] * @this->strides[1]) + (z * @this->strides[1]) : 0) +
(dimensions > 1 ? minimumExtents[1] * @this->strides[0] : 0);
for (int y = 0; y < updateExtents[1]; y++)
@@ -582,7 +582,7 @@ unsafe partial struct D2D1ResourceTextureManagerImpl
try
{
extent01SizeInBytes = checked((extents[1] - 1) * strides[0] + extent0SizeInBytes);
extent01SizeInBytes = checked(((extents[1] - 1) * strides[0]) + extent0SizeInBytes);
}
catch (OverflowException)
{
@@ -609,7 +609,7 @@ unsafe partial struct D2D1ResourceTextureManagerImpl
try
{
extent012SizeInBytes = (extents[2] - 1) * strides[1] + extent01SizeInBytes;
extent012SizeInBytes = ((extents[2] - 1) * strides[1]) + extent01SizeInBytes;
}
catch (OverflowException)
{
+2 -2
ファイルの表示
@@ -77,7 +77,7 @@ internal struct Point64
// [ M21, M22 ]
// [ x, y] [ M31, M32 ] = [ x * M11 + y * M21 + M31, x * M12 + y * M22 + m32]
return (
Math.Round((double)this.x * matrix.M11 + (double)this.y * matrix.M21 + matrix.M31),
Math.Round((double)this.x * matrix.M12 + (double)this.y * matrix.M22 + matrix.M32));
Math.Round(((double)this.x * matrix.M11) + ((double)this.y * matrix.M21) + matrix.M31),
Math.Round(((double)this.x * matrix.M12) + ((double)this.y * matrix.M22) + matrix.M32));
}
}