Fix compilation issue.
Fix warning for signed/unsigned integer comparison.