Skip to content

Commit

Permalink
.NET: Parse(): Fix wrong decimalMark check
Browse files Browse the repository at this point in the history
  • Loading branch information
agdavydov81 committed Sep 20, 2023
1 parent 89b1444 commit ac73404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csharp/EPAM.Deltix.DFP/DotNetReImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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?
{
Expand Down

0 comments on commit ac73404

Please sign in to comment.