Fix build failure in gold due to signed vs. unsigned comparisons.