diff --git a/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs b/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs index 0a9925b71..f5ac38ef9 100644 --- a/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs +++ b/Src/Newtonsoft.Json.Tests/JsonConvertTest.cs @@ -1592,8 +1592,8 @@ public void CustomDoubleRounding() [Test] public void DoubleRoundTrip() { - var x = 0.1 + 0.2; - var y = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(x)); + double x = 0.1 + 0.2; + double y = JsonConvert.DeserializeObject(JsonConvert.SerializeObject(x)); Assert.AreEqual(x, y); }