imgui: fix undefined behaviour bitshift.