Fixed a signed/unsigned mismatch warning