Skip to content

Commit

Permalink
Fix: Cast according to Issue #1562
Browse files Browse the repository at this point in the history
Related issue: #1562
  • Loading branch information
tcojean committed May 31, 2024
1 parent d78f7a4 commit dcf1aba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/reorder/amd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ std::unique_ptr<LinOp> Amd<IndexType>::generate_impl(
// row workspace
const auto col_idxs_plus_workspace_size = nnz + nnz / 5 + 2 * num_rows;
array<IndexType> col_idxs_plus_workspace{
host_exec, col_idxs_plus_workspace_size + 6 * num_rows};
host_exec,
static_cast<size_type>(col_idxs_plus_workspace_size + 6 * num_rows)};
host_exec->copy_from(exec, nnz, pattern->get_const_col_idxs(),
col_idxs_plus_workspace.get_data());

Expand Down

0 comments on commit dcf1aba

Please sign in to comment.