g10: Avoid undefined behavior.