diff options
author | Timothy Risi <timothy.risi@xamarin.com> | 2016-12-07 22:00:32 +0300 |
---|---|---|
committer | Chris Hamons <chris.hamons@xamarin.com> | 2016-12-07 22:00:32 +0300 |
commit | 54f599934319558e391d4c6b89ad7e85d4f95366 (patch) | |
tree | c5dc218f2976f1182832a313b4f79050d02deab1 /src | |
parent | 0ae60f903606c78e862b41134070c79e4c7ed959 (diff) |
Lost the 'bool' in 'bool double' in Numerics.AreEqual (#12)
Diffstat (limited to 'src')
-rwxr-xr-x | src/framework/Constraints/Numerics.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/framework/Constraints/Numerics.cs b/src/framework/Constraints/Numerics.cs index 3fe43b4..7c13718 100755 --- a/src/framework/Constraints/Numerics.cs +++ b/src/framework/Constraints/Numerics.cs @@ -100,7 +100,7 @@ namespace NUnit.Framework.Constraints /// <returns>True if the values are equal</returns> public static bool AreEqual(object expected, object actual, ref Tolerance tolerance) { - _double = (expected is double || actual is double); + bool _double = (expected is double || actual is double); if (!_double && (IntPtr.Size == 8)) _double = (expected.GetType () == nfloatType || actual.GetType () == nfloatType); |