Prevent undefined behavior and now cppcheck compliant