Skip to content

Integer numbers smaller than int.MinValue are not parsed correctly #964

Description

@Molinarius

System.Linq.Dynamic.Core 1.7.0 with .NET 9: Integer numbers smaller than int.MinValue are not parsed correctly.

Example:

Console.WriteLine(new NumberParser(null).ParseIntegerLiteral(0, "-3000000000"));

Excepted Output:

-3000000000

Actual Output:

1294967296

Fiddle: https://dotnetfiddle.net/r7d9Q0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions