Repository.xs: Fix signed/unsigned comparison warning with MSVC