Fix warning of signed/unsigned comparison.