Skip to content

Commit d87b8ab

Browse files
committed
Fix test
1 parent 19ac7d6 commit d87b8ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_tools/ruby_h_to_go/spec/ruby_h_to_go/function_definition_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@
304304
RubyHeaderParser::FunctionDefinition.new(
305305
name: "RSTRING_END",
306306
definition: "RSTRING_END(VALUE str)",
307-
typeref: typeref(type: "char", pointer: :ref),
307+
typeref: typeref(type: "char", pointer: :raw),
308308
args: [
309309
argument(type: "VALUE", name: "str"),
310310
],
@@ -318,8 +318,8 @@
318318
// Original definition is following
319319
//
320320
// RSTRING_END(VALUE str)
321-
func RSTRING_END(str VALUE) string {
322-
return char2String(C.RSTRING_END(C.VALUE(str)))
321+
func RSTRING_END(str VALUE) *Char {
322+
return (*Char)(C.RSTRING_END(C.VALUE(str)))
323323
}
324324
325325
GO

0 commit comments

Comments
 (0)