Fix unsigned integer overflow of i, which gives SIGABRT

Bug: 147640670
Test: None

Change-Id: I157aacbf9ddaa6a91eccd940573cf187b58e8d5e
1 file changed