Mentions légales du service

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

Fix one-factor-loading from .mat file (C++ Transform::get_mat_file_type error).

parent 29655663
Branches
Tags
No related merge requests found
...@@ -510,7 +510,7 @@ int Faust::Transform<FPP, Cpu>::get_mat_file_type(const char *filepath) ...@@ -510,7 +510,7 @@ int Faust::Transform<FPP, Cpu>::get_mat_file_type(const char *filepath)
throw std::runtime_error("Faust::Transform<FPP, Cpu>::read_from_mat_file error: the matio variable is not a cell."); throw std::runtime_error("Faust::Transform<FPP, Cpu>::read_from_mat_file error: the matio variable is not a cell.");
} }
if(cell_matvar->dims[1] > 1) if(cell_matvar->dims[1] >= 1)
{ {
auto matvar = Mat_VarGetCell(cell_matvar, 0); auto matvar = Mat_VarGetCell(cell_matvar, 0);
if(matvar->isComplex) if(matvar->isComplex)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment