scilab: fix scilab_li_matrix wrong checks
This commit is contained in:
parent
8701e6f843
commit
d4168ef47c
2 changed files with 35 additions and 23 deletions
|
|
@ -117,7 +117,7 @@ template<> void inout_matrix_func(bool *inputMatrix, int nbRow, int nbCol, bool
|
|||
*nbColRes = nbCol;
|
||||
*resultMatrix = (bool*) malloc(size * sizeof(bool));
|
||||
for (i=0; i<size; i++) {
|
||||
(*resultMatrix)[i] = ~inputMatrix[i];
|
||||
(*resultMatrix)[i] = inputMatrix[i]==1?0:1;
|
||||
}
|
||||
}
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue