Fixing signed/unsigned comparison warnings.