libgit2 errors are int-sized.