aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/DoubleToleranceConstraint.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests/Common/DoubleToleranceConstraint.cs')
-rw-r--r--OpenSim/Tests/Common/DoubleToleranceConstraint.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Tests/Common/DoubleToleranceConstraint.cs b/OpenSim/Tests/Common/DoubleToleranceConstraint.cs
index 3363c54..a766549 100644
--- a/OpenSim/Tests/Common/DoubleToleranceConstraint.cs
+++ b/OpenSim/Tests/Common/DoubleToleranceConstraint.cs
@@ -53,14 +53,14 @@ namespace OpenSim.Tests.Common
53 { 53 {
54 throw new ArgumentException("Constraint cannot be used upon null values."); 54 throw new ArgumentException("Constraint cannot be used upon null values.");
55 } 55 }
56 if( valueToBeTested.GetType() != typeof(double)) 56 if (valueToBeTested.GetType() != typeof(double))
57 { 57 {
58 throw new ArgumentException("Constraint cannot be used upon non double-values."); 58 throw new ArgumentException("Constraint cannot be used upon non double-values.");
59 } 59 }
60 60
61 _valueToBeTested = (double)valueToBeTested; 61 _valueToBeTested = (double)valueToBeTested;
62 62
63 return IsWithinDoubleConstraint(_valueToBeTested, _baseValue ); 63 return IsWithinDoubleConstraint(_valueToBeTested, _baseValue);
64 } 64 }
65 65
66 public override void WriteDescriptionTo(MessageWriter writer) 66 public override void WriteDescriptionTo(MessageWriter writer)