Skip to content

Commit e23f00b

Browse files
committed
Simplify declaration of RARRAY_PTR type.
1 parent 55ce0b4 commit e23f00b

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
@@ -1497,7 +1497,7 @@ VALUE rb_Array(VALUE array) {
14971497
}
14981498

14991499
VALUE *RARRAY_PTR_IMPL(VALUE array) {
1500-
return (VALUE *) polyglot_as_typed(RUBY_CEXT_INVOKE_NO_WRAP("RARRAY_PTR", array), polyglot_array_typeid(polyglot_i64_typeid(), RARRAY_LEN(array)));
1500+
return (VALUE *) polyglot_as_i64_array(RUBY_CEXT_INVOKE_NO_WRAP("RARRAY_PTR", array));
15011501
}
15021502

15031503
VALUE rb_ary_new() {

0 commit comments

Comments
 (0)