Skip to content

Commit cd38990

Browse files
committed
Use RARRAY_LEN instead of rb_array_len.
1 parent 6163eab commit cd38990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/c/cext/ruby.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ int rb_tr_flags(VALUE value) {
12761276
if (OBJ_TAINTED(value)) {
12771277
flags |= RUBY_FL_TAINT;
12781278
}
1279-
if (rb_array_len(rb_obj_instance_variables(value)) > 0) {
1279+
if (RARRAY_LEN(rb_obj_instance_variables(value)) > 0) {
12801280
flags |= RUBY_FL_EXIVAR;
12811281
}
12821282
// TODO BJF Nov-11-2017 Implement more flags

0 commit comments

Comments
 (0)