Check for negative shift counts