Fix integer overflow caused by bad use of binary operator.