Liste des Groupes | Revenir à cl c |
Thiago Adams <thiago.adams@gmail.com> writes:
>More samples..>
max uint64 + 1 is signed 128 bits in gcc and unsigned long long in clang
>
#ifdef __clang__
static_assert(TYPE_IS(9223372036854775808, unsigned long long ));
#else
static_assert(TYPE_IS(9223372036854775808, __int128));
#endif
>
https://godbolt.org/z/hveY44ov4
9223372036854775808 is 2**63, or INT64_MAX-1, not UINT64_MAX-1.
Les messages affichés proviennent d'usenet.