Skip to content

Commit 6a77db4

Browse files
committed
added ReadOnlySpan<T>
1 parent 83a701a commit 6a77db4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Box2D.NET/B2ContactSolvers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ static void b2ScatterBodies( b2BodyState* states, int* indices, const b2BodyStat
11071107
#else
11081108

11091109
// This is a load and transpose
1110-
internal static B2BodyStateW b2GatherBodies(B2BodyState[] states, ReadOnlySpan<int> indices)
1110+
internal static B2BodyStateW b2GatherBodies(ReadOnlySpan<B2BodyState> states, ReadOnlySpan<int> indices)
11111111
{
11121112
B2BodyState identity = b2_identityBodyState;
11131113

@@ -1130,7 +1130,7 @@ internal static B2BodyStateW b2GatherBodies(B2BodyState[] states, ReadOnlySpan<i
11301130
}
11311131

11321132
// This writes only the velocities back to the solver bodies
1133-
internal static void b2ScatterBodies(B2BodyState[] states, ReadOnlySpan<int> indices, ref B2BodyStateW simdBody)
1133+
internal static void b2ScatterBodies(ReadOnlySpan<B2BodyState> states, ReadOnlySpan<int> indices, ref B2BodyStateW simdBody)
11341134
{
11351135
if (indices[0] != B2_NULL_INDEX && (states[indices[0]].flags & (uint)B2BodyFlags.b2_dynamicFlag) != 0)
11361136
{

0 commit comments

Comments
 (0)