Skip to content

Octal is not converted correctly #45

Description

@adipose

In Java, as in C, you can specify an octal integer by prefixing with a zero (https://www.geeksforgeeks.org/java-program-to-illustrate-the-usage-of-octal-integer/).

077 = 0x3F = 63

JavaToCSharp preserves the original 077 text.

The problem is that CSharp does not support octal integers, leading to 077 being treated as 77L (https://www.ecma-international.org/wp-content/uploads/ECMA-334_6th_edition_june_2022.pdf 6.4.5.3).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions