[12369] Fix some signed/unsigned integer comparison warnings.

Warnings aside, it also makes sense for a number of parameters/arguments to be unsigned.