Skip to content

Commit

Permalink
Fix Vector<T> != operator (#78177)
Browse files Browse the repository at this point in the history
  • Loading branch information
radekdoulik authored Nov 11, 2022
1 parent dc2b0f7 commit e319104
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,12 @@ public T this[int index]
{
for (int index = 0; index < Count; index++)
{
if (Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index)))
if (!Scalar<T>.Equals(left.GetElementUnsafe(index), right.GetElementUnsafe(index)))
{
return false;
return true;
}
}
return true;
return false;
}

/// <summary>Shifts each element of a vector left by the specified amount.</summary>
Expand Down

0 comments on commit e319104

Please sign in to comment.