Fix sign/unsigned warnings in HTG.

Change-Id: I30c2ba92d542f3ab62c5de9d47e5a4cce3d7e785
Merge topic 'Fix-HTG-sign-warnings' into master

dceece9f Fix sign/unsigned warnings in HTG.