File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ Bug fixes:
27
27
* Keep the Truffle working directory in sync with the native working directory.
28
28
* Rename ` to_native ` to ` polyglot_to_native ` to match ` polyglot_pointer? ` and ` polyglot_address ` methods.
29
29
* Fixed missing partial evaluation boundary in ` Array#{sort,sort!} ` (#1727 ).
30
+ * Fixed missing polyglot type declaration for ` RSTRING_PTR ` to help with native/managed interop.
30
31
31
32
Compatibility:
32
33
Original file line number Diff line number Diff line change @@ -804,7 +804,7 @@ double rb_float_value(VALUE value) {
804
804
// String
805
805
806
806
char * RSTRING_PTR_IMPL (VALUE string ) {
807
- return RUBY_CEXT_INVOKE_NO_WRAP ("RSTRING_PTR" , string );
807
+ return ( char * ) polyglot_as_i8_array ( RUBY_CEXT_INVOKE_NO_WRAP ("RSTRING_PTR" , string ) );
808
808
}
809
809
810
810
char * RSTRING_END (VALUE string ) {
You can’t perform that action at this time.
0 commit comments