Skip to content

Commit 204c43f

Browse files
committed
Use auto-generated binding instead of manually-generated
1 parent 347b678 commit 204c43f

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

ruby/ruby_internal_core_rstring.go

Lines changed: 0 additions & 28 deletions
This file was deleted.

ruby/wrapper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func Value2String(str VALUE) string {
106106

107107
// value2String convert from `C.VALUE` to Go string. (for internal use within package)
108108
func value2String(str C.VALUE) string {
109-
return C.GoStringN(rstringPtr(str), rstringLenint(str))
109+
return C.GoStringN((*C.char)(RSTRING_PTR(VALUE(str))), C.int(RSTRING_LENINT(VALUE(str))))
110110
}
111111

112112
// StringLen returns string length as [Long]

0 commit comments

Comments
 (0)