Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CC09: unsigned number literals #4

Open
Deek opened this issue May 9, 2020 · 0 comments
Open

CC09: unsigned number literals #4

Deek opened this issue May 9, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Deek
Copy link
Owner

Deek commented May 9, 2020

CC09 barfs on explicitly unsigned numbers. If you assign to an unsigned variable a hex-notated value with the highest order bit set, or a negative number, the code will indeed treat it as unsigned as far as I know, but there's no way for a raw number's signedness to be denoted. C89+ use a U notation, just like the L notation for a "long" number.

We may be able to get away with just eating the U to enable interoperability, but think I'd rather make explicitly unsigned numbers get tagged as UCHAR, UINT, UCONST, ULCONST instead of CHAR, INT, CONST, LCONST.

Something to look into later, when everything else works, or when someone wants to look at it. :)

@Deek Deek added enhancement New feature or request help wanted Extra attention is needed labels May 9, 2020
@Deek Deek self-assigned this May 9, 2020
@Deek Deek added the good first issue Good for newcomers label May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant