Skip to content

Commit 0e92c92

Browse files
committed
Changed rb_ary_length to RARRAY_LEN
1 parent 2dd2966 commit 0e92c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/symengine/ruby_function.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ IMPLEMENT_ONE_ARG_FUNC(gamma);
4141

4242
VALUE cfunction_functionsymbol_init(VALUE self, VALUE args)
4343
{
44-
int argc = NUM2INT(rb_ary_length(args));
44+
int argc = RARRAY_LEN(args);
4545
if(argc == 0){
4646
rb_raise(rb_eTypeError, "Arguments Expected");
4747
}

0 commit comments

Comments
 (0)