Skip to content

Commit

Permalink
Fixed type for out_len
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 17, 2024
1 parent 71be1f8 commit e99a9ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xgboost/dmatrix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def set_float_info(field, data)

def float_info(field)
num_row ||= num_row()
out_len = ::FFI::MemoryPointer.new(:int)
out_len = ::FFI::MemoryPointer.new(:uint64)
out_dptr = ::FFI::MemoryPointer.new(:float, num_row)
check_call FFI.XGDMatrixGetFloatInfo(handle, field, out_len, out_dptr)
out_dptr.read_pointer.read_array_of_float(num_row)
Expand Down

0 comments on commit e99a9ce

Please sign in to comment.