Protect against int overflow