Skip to content

Commit 6fdefd9

Browse files
committed
Fix missed uses of RUBY_CEXT_INVOKE.
1 parent 56fc5a8 commit 6fdefd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/c/cext/ruby.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ void rb_iter_break_value(VALUE value) {
388388
}
389389

390390
const char *rb_sourcefile(void) {
391-
return RSTRING_PTR(rb_tr_wrap(polyglot_invoke(RUBY_CEXT, "rb_sourcefile")));
391+
return RSTRING_PTR(RUBY_CEXT_INVOKE("rb_sourcefile"));
392392
}
393393

394394
int rb_sourceline(void) {
@@ -965,7 +965,7 @@ VALUE rb_str_export_to_enc(VALUE string, rb_encoding *enc) {
965965
}
966966

967967
rb_encoding *rb_default_external_encoding(void) {
968-
VALUE result = rb_tr_wrap(polyglot_invoke(RUBY_CEXT, "rb_default_external_encoding"));
968+
VALUE result = RUBY_CEXT_INVOKE("rb_default_external_encoding");
969969
if (NIL_P(result)) {
970970
return NULL;
971971
}

0 commit comments

Comments
 (0)