Hi everyone,
I try to work with an uint64_t as followed:
uint64_t a;
a=a| 1 <<63;
And it displays: "gf2m.c:71: warning: left shift count >= width of type". I don't know why. Please help me. Thanks a lot.
Hi everyone,
I try to work with an uint64_t as followed:
uint64_t a;
a=a| 1 <<63;
And it displays: "gf2m.c:71: warning: left shift count >= width of type". I don't know why. Please help me. Thanks a lot.
Because 1 is an int, not a uint64_t. Use 1ULL, which is an unsigned long long, guaranteed to be at least 64 bits.
Thanks so much cas