Fixed unnecessary warning due to int overflow.