Skip to content

Commit

Permalink
Revert change in BindableNumber.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
turbedi committed Mar 7, 2024
1 parent 7e1465d commit a11ce10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osu.Framework/Bindables/BindableNumber.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ public T Precision
if (precision.Equals(value))
return;

ArgumentOutOfRangeException.ThrowIfNegativeOrZero(value.CompareTo(default));
if (value.CompareTo(default) <= 0)
throw new ArgumentOutOfRangeException(nameof(Precision), value, "Must be greater than 0.");

SetPrecision(value, true, this);
}
Expand Down

0 comments on commit a11ce10

Please sign in to comment.