Change equality comparison on RegisterMask for consistency

Co-Authored-By: gdkchan <gab.dark.100@gmail.com>
This commit is contained in:
jduncanator 2019-04-17 20:33:02 -03:00 committed by gdkchan
parent a5f483c0a7
commit 57f5916783

View file

@ -35,7 +35,7 @@ namespace ChocolArm64.IntermediateRepresentation
public static bool operator !=(RegisterMask x, RegisterMask y)
{
return !(x == y);
return !x.Equals(y);
}
public override bool Equals(object obj)
@ -53,4 +53,4 @@ namespace ChocolArm64.IntermediateRepresentation
return IntMask == other.IntMask && VecMask == other.VecMask;
}
}
}
}