mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
cstr -> bytes
rb_iseq_ibf_load_cstr() accepts bytes, but not NUL-terminate C string. To make it clear, rename it to _bytes.
This commit is contained in:
parent
0b29662606
commit
83c563cfa4
3 changed files with 7 additions and 7 deletions
|
@ -26,7 +26,7 @@ rb_load_with_builtin_functions(const char *feature_name, const char *fname, cons
|
|||
|
||||
// load binary
|
||||
GET_VM()->builtin_function_table = table;
|
||||
const rb_iseq_t *iseq = rb_iseq_ibf_load_cstr((const char *)bin, size);
|
||||
const rb_iseq_t *iseq = rb_iseq_ibf_load_bytes((const char *)bin, size);
|
||||
GET_VM()->builtin_function_table = NULL;
|
||||
|
||||
// exec
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue