Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Aug 28, 2018
1 parent e67de6e commit f7d29ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Unosquare.Swan.Lite/Extensions.ValueTypes.cs
Expand Up @@ -19,7 +19,7 @@ public static class ValueTypeExtensions
/// <param name="min">The minimum.</param>
/// <param name="max">The maximum.</param>
/// <returns>A value that indicates the relative order of the objects being compared.</returns>
public static T Clamp<T>(this T value, in T min, in T max)
public static T Clamp<T>(this T value, T min, T max)
where T : struct, IComparable
{
if (value.CompareTo(min) < 0) return min;
Expand All @@ -34,7 +34,7 @@ public static T Clamp<T>(this T value, in T min, in T max)
/// <param name="min">The minimum.</param>
/// <param name="max">The maximum.</param>
/// <returns>A value that indicates the relative order of the objects being compared.</returns>
public static int Clamp(this int value, in int min, in int max)
public static int Clamp(this int value, int min, int max)
=> value < min ? min : (value > max ? max : value);

/// <summary>
Expand Down

0 comments on commit f7d29ee

Please sign in to comment.