The hack depends on the type being exactly 32-bit wide and unsigned int may be wider.