From ac73404d576c2c87a98352165821ef76a7a38da1 Mon Sep 17 00:00:00 2001 From: Andrei Davydov Date: Wed, 20 Sep 2023 12:14:41 +0300 Subject: [PATCH] .NET: Parse(): Fix wrong decimalMark check --- csharp/EPAM.Deltix.DFP/DotNetReImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp/EPAM.Deltix.DFP/DotNetReImpl.cs b/csharp/EPAM.Deltix.DFP/DotNetReImpl.cs index 3187f37..5f46a95 100644 --- a/csharp/EPAM.Deltix.DFP/DotNetReImpl.cs +++ b/csharp/EPAM.Deltix.DFP/DotNetReImpl.cs @@ -110,7 +110,7 @@ public unsafe static BID_UINT64 bid64_from_string(string s, string decimalMarks, bool cEqDot = decimalMarks.IndexOf(*ps) >= 0; // detect special cases (INF or NaN) - if (cEqDot && (*ps < '0' || *ps > '9')) + if (!cEqDot && (*ps < '0' || *ps > '9')) { if (IsStrEq(ps, "inf") || IsStrEq(ps, "infinity")) // Infinity? {