From a5081835a3c9b4fe16b0aadc1583c16123e7eddf Mon Sep 17 00:00:00 2001 From: hubera01 Date: Mon, 23 May 2016 14:21:09 +0200 Subject: [PATCH] Fix bug in NaN interpretation References #25 --- Lawo.EmberPlusSharp/Ember/EmberReader.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lawo.EmberPlusSharp/Ember/EmberReader.cs b/Lawo.EmberPlusSharp/Ember/EmberReader.cs index f13dca1a..4603e0d3 100644 --- a/Lawo.EmberPlusSharp/Ember/EmberReader.cs +++ b/Lawo.EmberPlusSharp/Ember/EmberReader.cs @@ -545,7 +545,7 @@ private static double ReadReal(ReadBuffer readBuffer, int length) { return signBits == 0 ? double.PositiveInfinity : double.NegativeInfinity; } - else if (mantissa == Constants.DoubleMantissaMask) + else { return double.NaN; }