Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e3bbc207 authored by hhakim's avatar hhakim
Browse files

Fix erroneous assertions in TransformHelperGen::init_fancy_idx_transform.

parent 04649f57
Branches
Tags 3.27.0
No related merge requests found
Pipeline #834078 skipped
......@@ -27,9 +27,8 @@ namespace Faust
this->transform = th->transform; //do not remove this line, necessary for eval*()
this->copy_transconj_state(*th);
// handleError("Faust::TransformHelper::TransformHelper(TransformHelper,Slice)", "Fancy indexing overflows a Faust dimension.");
assert(num_rows == 0 && row_ids == nullptr);
assert(num_cols == 0 && row_ids == nullptr);
assert(row_ids != nullptr || col_ids != nullptr);
assert(num_rows == 0 && row_ids == nullptr || num_rows > 0 && row_ids != nullptr);
assert(num_cols == 0 && col_ids == nullptr || num_cols > 0 && col_ids != nullptr);
if(row_ids != nullptr)
{
this->fancy_num_rows = num_rows;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment