Fix signed & unsigned int comparison warnings.

Change-Id: Ic7939e9b10b79a626466e7d31594a79e1377eb09