Re: [RFC PATCH v5 0/8] rebase-interactive
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 26, 2018, 19:37 UTC
- Message-ID
- <xmqqtvt2bpcb.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CAKk8isp_qx1ajgRryhBw6TYBoaa8fJU6hP3JyUWAx20knQSLXA@mail.gmail.com>
Wink Saville <wink@saville.com> writes:
> Should we add a "_Static_assert" that sizeof(uintmax_t) >= sizeof(uint64_t) ?
If that expression compiles, then both types are understood by the platform. Because
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdint.h.html
tells us:
Greatest-width integer types
The following type designates a signed integer type capable of
representing any value of any signed integer type: intmax_t The following type designates an unsigned integer type capable of
representing any value of any unsigned integer type: uintmax_tThese types are required.
we know what that expression evaluates to, no?