on-internet
← Community

Imprecise bit-precise definitions

Stack Overflow ·

In ISO 9899:2024 "C23", chapter 6.3.2.8 describing the usual arithmetic conversions, there is this weird example text: EXAMPLE One consequence of _BitInt being exempt from the integer promotion rules (6.3.2) is that a _BitInt operand of a binary operator is not always promoted to an int or unsigned int as part of the usual arithmetic conversions. Instead, a lower-ranked operand is converted to the higher-rank operand type and the result of the operation is the higher-ranked type. This is an example so it is not normative text. Then if we check 6.3.2.1 where integer promotions are specified: Th

Comments

Sign in or sign up to comment and upvote.

No comments yet.