Skip to content

Commit f03b02d

Browse files
committed
Remove useless wrap in rb_str_set_len()
1 parent 9cc3530 commit f03b02d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/cext/ABI_check.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8
1+
9

src/main/c/cext/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void rb_str_set_len(VALUE string, long length) {
175175
if (length > capacity || length < 0) {
176176
rb_raise(rb_eRuntimeError, "probable buffer overflow: %ld for %ld", length, capacity);
177177
}
178-
rb_tr_wrap(polyglot_invoke(RUBY_CEXT, "rb_str_set_len", rb_tr_unwrap(string), length));
178+
polyglot_invoke(RUBY_CEXT, "rb_str_set_len", rb_tr_unwrap(string), length);
179179
}
180180

181181
VALUE rb_str_new_frozen(VALUE value) {

0 commit comments

Comments
 (0)