Skip to content

Commit

Permalink
swig-rb: Restore swig-rb to be compatible with Ruby 1.9 through 2.2.
Browse files Browse the repository at this point in the history
* subversion/bindings/swig/include/svn_types.swg
  (%typemap(ret) svn_error_t *):
    Use `RARRAY_LEN` rather than `rb_array_len`.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1922418 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jun66j5 committed Dec 10, 2024
1 parent 953982c commit b2ae6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subversion/bindings/swig/include/svn_types.swg
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ svn_ ## TYPE ## _swig_rb_closed(VALUE self)
%typemap(ret) svn_error_t *
{
if (TYPE(*svn_presult) == T_ARRAY) {
switch (rb_array_len(*svn_presult)) {
switch (RARRAY_LEN(*svn_presult)) {
case 0:
*svn_presult = Qnil;
break;
Expand Down

0 comments on commit b2ae6ef

Please sign in to comment.