lib/ngt/index.rb in ngt-0.1.0 vs lib/ngt/index.rb in ngt-0.1.1

- old
+ new

@@ -27,10 +27,10 @@ objects = objects.to_a flat_objects = objects.flatten obj = ::FFI::MemoryPointer.new(:float, flat_objects.size) obj.write_array_of_float(flat_objects) - ids = ::FFI::MemoryPointer.new(:uint32_t, objects.size) + ids = ::FFI::MemoryPointer.new(:uint32, objects.size) ffi(:ngt_batch_insert_index, @index, obj, objects.size, ids) build_index(num_threads: num_threads) ids.read_array_of_uint32(objects.size)