Fix compiler warning with signed vs unsigned comparison.