This C code is underlined in the IDE and gives me an error:
uint64_t dummy = 1<<50;
unsigned long long dummy = 1<<50;
The “<<” is underlined, and hovering shows “Shift count >= width of type”.
I noticed this because this was not working either:
printf("%" PRIu64 "\n, dummy);
and I thought to just manually print each bit for debugging.
I’ve just realized I need to #include <inttypes.h> - this resolves the printf problem, but the 1<<50 problem is still present.
Am I doing something wrong (again)?