3 ms·
> my recollection is that ptrdiff_t is also defined at 16 bits (which I think violates the C spec, which requires at least 17 bits?) C2x applies a proposal to
by wahern 4y ago
> my recollection is that ptrdiff_t is also defined at 16 bits (which I think violates the C spec, which requires at least 17 bits?)
C2x applies a proposal to permit pre-C99 limits:
N2808 Allow 16-bit ptrdiff_t
N2808: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2808.htm https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2808.htm
Draft C2x: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3047.pdf https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3047.pdf