Lost the 'bool' in 'bool double' in Numerics.AreEqual (#12)

This commit is contained in:
Timothy Risi 2016-12-07 10:00:32 -09:00 коммит произвёл Chris Hamons
Родитель 0ae60f9036
Коммит 54f5999343
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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);