Skip to content

Commit 7f34c75

Browse files
committed
Use RSTRING_PTR instead of StringValuePtr
... since it is certain to be a String in this context. Also, I want to avoid the anxious use of `StringValuePtr(str)` and `RSTRING_LEN(str)` as arguments in the same function call.
1 parent f65a6c0 commit 7f34c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14649,7 +14649,7 @@ ibf_load_setup(struct ibf_load *load, VALUE loader_obj, VALUE str)
1464914649
str = rb_str_new(RSTRING_PTR(str), RSTRING_LEN(str));
1465014650
}
1465114651

14652-
ibf_load_setup_bytes(load, loader_obj, StringValuePtr(str), RSTRING_LEN(str));
14652+
ibf_load_setup_bytes(load, loader_obj, RSTRING_PTR(str), RSTRING_LEN(str));
1465314653
RB_OBJ_WRITE(loader_obj, &load->str, str);
1465414654
}
1465514655

0 commit comments

Comments
 (0)