Skip to content

Commit

Permalink
Fix compatibility with Rubinius/REE
Browse files Browse the repository at this point in the history
The rb_ary_length() function is not implemented outside of the MRI.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
  • Loading branch information
vmg committed Dec 6, 2010
1 parent 1d6cab7 commit abfb3d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/rugged/rugged_repo.c
Expand Up @@ -97,7 +97,7 @@ void rb_git_repo__mark(rugged_repository *repo)
{
int i;

for (i = 0; i < rb_ary_length(repo->backends); ++i)
for (i = 0; i < rb_ary_size(repo->backends); ++i)
rb_gc_mark(rb_ary_entry(repo->backends, i));
}

Expand Down

0 comments on commit abfb3d0

Please sign in to comment.