Skip to content

Commit

Permalink
Fix data type
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkn committed Mar 3, 2021
1 parent 096e973 commit 27a2a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/arrow-nmatrix/arrow-nmatrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ nmatrix_dtype_to_garrow_data_type(nm_dtype_t nmatrix_type)
static VALUE
rb_nmatrix_to_arrow(VALUE self)
{
GArrowDoubleDataType *data_type;
GArrowDataType *data_type;
GArrowBuffer *data;
GArrowTensor *tensor;
VALUE rb_tensor;
Expand All @@ -191,7 +191,7 @@ rb_nmatrix_to_arrow(VALUE self)
}
data = garrow_buffer_new((const guint8 *)NM_DENSE_ELEMENTS(self),
NM_SIZEOF_DTYPE(self) * NM_DENSE_COUNT(self));
tensor = garrow_tensor_new(GARROW_DATA_TYPE(data_type),
tensor = garrow_tensor_new(data_type,
data,
(gint64 *)(NM_STORAGE(self)->shape),
NM_DIM(self),
Expand Down

0 comments on commit 27a2a04

Please sign in to comment.