Fixed a signed/unsigned comparison warning