Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
left shift count >= width of type is a compile warning when bit shifting too much up:
#include <cinttypes> |
The code shown, however, might give this compile warning unexpectedly. Sure, a 1 shifted 63 times up will fit in a 64-bit int. But the 1 itself must be 64 bit as well:
#include <cinttypes> |
Operating system(s) or programming environment(s)
Libraries used:
TEMPLATE = app |
#include <cinttypes> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
This page has been created by the tool CodeToHtml