fix a sign-compare warning and use -Wall

Test: mma
Bug: 34901468
Change-Id: If68c1540a88ea28987fb7359a0ee01cf45263579
2 files changed