Fix signed/unsigned comparison warning