File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -914,7 +914,7 @@ extern "C" {
914
914
assert (tensor &&iref &&vref); \
915
915
assert (iref->strides [0 ] == 1 ); \
916
916
index_type *indx = iref->data + iref->offset ; \
917
- V *value = vref->data + vref->offset ; \
917
+ (V) *value = vref->data + vref->offset ; \
918
918
const uint64_t isize = iref->sizes [0 ]; \
919
919
auto iter = static_cast <SparseTensorCOO<V> *>(tensor); \
920
920
const Element<V> *elem = iter->getNext (); \
@@ -950,7 +950,7 @@ extern "C" {
950
950
assert (aref->strides [0 ] == 1 ); \
951
951
assert (vref->sizes [0 ] == fref->sizes [0 ]); \
952
952
index_type *cursor = cref->data + cref->offset ; \
953
- V *values = vref->data + vref->offset ; \
953
+ (V) *values = vref->data + vref->offset ; \
954
954
bool *filled = fref->data + fref->offset ; \
955
955
index_type *added = aref->data + aref->offset ; \
956
956
static_cast <SparseTensorStorageBase *>(tensor)->expInsert ( \
You can’t perform that action at this time.
0 commit comments