Add a few unsigned and casts for less warnings with -Wsign-compare.

--HG--
branch : HEAD
5 files changed