Fix compiler warning (sign-compare) in git2r C code

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>