mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 07:43:01 +08:00
Remove IComparable in constraint.
This commit is contained in:
parent
c3518a2b94
commit
ad1fb3bda2
@ -44,7 +44,7 @@ namespace osu.Game.Screens.Select
|
|||||||
}
|
}
|
||||||
|
|
||||||
public struct OptionalRange<T> : IEquatable<OptionalRange<T>>
|
public struct OptionalRange<T> : IEquatable<OptionalRange<T>>
|
||||||
where T : struct, IComparable
|
where T : struct
|
||||||
{
|
{
|
||||||
public bool HasFilter => Max != null || Min != null;
|
public bool HasFilter => Max != null || Min != null;
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ namespace osu.Game.Screens.Select
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void updateCriteriaRange<T>(ref FilterCriteria.OptionalRange<T> range, string op, T value)
|
private static void updateCriteriaRange<T>(ref FilterCriteria.OptionalRange<T> range, string op, T value)
|
||||||
where T : struct, IComparable
|
where T : struct
|
||||||
{
|
{
|
||||||
switch (op)
|
switch (op)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user