Fix signed/unsigned comparison error.