Remove warnings about comparison of integer expressions of different signedness (-Wsign-compare)
parent
f23dd8c981
commit
70866c7b70
|
@ -42,7 +42,7 @@ ObjectiveMFile::unpackSparseMatrixAndCopyIntoTwoDMatData(mxArray *sparseMat, Two
|
|||
/* Under MATLAB, the following check always holds at equality; under Octave,
|
||||
there may be an inequality, because Octave diminishes nzmax if one gives
|
||||
zeros in the values vector when calling sparse(). */
|
||||
assert(tdm.nrows() >= mxGetNzmax(sparseMat));
|
||||
assert(tdm.nrows() >= static_cast<int>(mxGetNzmax(sparseMat)));
|
||||
|
||||
double *ptr = mxGetPr(sparseMat);
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ DynamicModelMFile::unpackSparseMatrixAndCopyIntoTwoDMatData(mxArray *sparseMat,
|
|||
/* Under MATLAB, the following check always holds at equality; under Octave,
|
||||
there may be an inequality, because Octave diminishes nzmax if one gives
|
||||
zeros in the values vector when calling sparse(). */
|
||||
assert(tdm.nrows() >= mxGetNzmax(sparseMat));
|
||||
assert(tdm.nrows() >= static_cast<int>(mxGetNzmax(sparseMat)));
|
||||
|
||||
int rind = 0;
|
||||
int output_row = 0;
|
||||
|
|
Loading…
Reference in New Issue