Title
Lax definition of intmax_t and uintmax_t
Status
nad
Section
17.4.1 [cstdint.syn]
Submitter
Daniel Krügler

Created on 2011-03-26.00:00:00 last changed 149 months ago

Messages

Date: 2011-08-15.00:00:00

Rationale (August, 2011):

This is a C compatibility issue and has ABI implications; there was no consensus to pursue a change.

Date: 2022-11-20.07:54:16

The definition of intmax_t and uintmax_t, inherited from C99, leaves open the possibility that the underlying types might not be the ones with the highest integer conversion rank. The requirements for these types deal only with the representation, not the conversion rank, and it is possible for, e.g., long and long long to have the same representation, although they have different conversion ranks. On such an architecture, chosing long instead of long long for intmax_t would be conforming.

History
Date User Action Args
2012-09-24 00:00:00adminsetmessages: + msg4030
2011-03-26 00:00:00admincreate