Fix compiler warning (signed vs. unsigned)