fix: Fixing overflow

This commit is contained in:
Chris Cameron
2019-06-13 17:10:34 -04:00
parent c31b2b556b
commit f7740aaea2
2 changed files with 32 additions and 3 deletions

View File

@@ -385,9 +385,7 @@ namespace ICD.Common.Utils.Attributes
throw new ArgumentException("Source value is not numeric");
double intermediate = RemapToDouble(value);
object remapped = RemapFromDouble(intermediate, type);
return Convert.ChangeType(remapped, value.GetType(), CultureInfo.InvariantCulture);
return RemapFromDouble(intermediate, type);
}
/// <summary>