Fixed compiler warning about signed/unsigned comparison.