Fix RCS1216
This commit is contained in:
@@ -1094,6 +1094,9 @@ dotnet_diagnostic.RCS1214.severity = warning
|
||||
# Expression is always equal to 'true'.
|
||||
dotnet_diagnostic.RCS1215.severity = warning
|
||||
|
||||
# Unnecessary unsafe context.
|
||||
dotnet_diagnostic.RCS1216.severity = warning
|
||||
|
||||
# Use pattern matching instead of combination of 'is' operator and cast operator.
|
||||
dotnet_diagnostic.RCS1220.severity = warning
|
||||
|
||||
|
||||
@@ -284,8 +284,6 @@ namespace OpenRA.Mods.Cnc.FileFormats
|
||||
static unsafe void MulBignumWord(ushort* pn1, uint[] n2, uint mul, uint len)
|
||||
{
|
||||
uint i, tmp;
|
||||
unsafe
|
||||
{
|
||||
fixed (uint* tempPn2 = &n2[0])
|
||||
{
|
||||
var pn2 = (ushort*)tempPn2;
|
||||
@@ -303,7 +301,6 @@ namespace OpenRA.Mods.Cnc.FileFormats
|
||||
*pn1 += (ushort)tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void MulBigNum(uint[] dest, uint[] src1, uint[] src2, uint len)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user