We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07c1de3 commit d3be552Copy full SHA for d3be552
lib/xgboost/utils.rb
@@ -25,7 +25,7 @@ def string_pointer(value)
25
def from_cstr_to_rbstr(data, length)
26
res = []
27
length.read_uint64.times do |i|
28
- res << data.read_pointer[i * ::FFI::Pointer.size].read_pointer.read_string.force_encoding(Encoding::UTF_8)
+ res << data.read_pointer.get_pointer(i * ::FFI::Pointer.size).read_string.force_encoding(Encoding::UTF_8)
29
end
30
res
31
0 commit comments