Enable -Wshift-overflow=2 to check for undefined shift behavior