Deek / Deek/CoCoC

CC09: unsigned number literals

Open
#4 0 comments 0 reactions 1 assignee Claimed by @Deek View on GitHub
enhancement good first issue help wanted
Dominant language
C
Stars
36
Forks
14
PR merge metrics
No merged PRs in 30d

Description

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. :)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.