Skip to content

Commit

Permalink
fix a warning picked by fedora package building flags
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Aug 16, 2022
1 parent af61014 commit 8291ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zmat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) {
}

try {
if (mxIsChar(prhs[0]) || (mxIsNumeric(prhs[0]) && ~mxIsComplex(prhs[0])) || mxIsLogical(prhs[0])) {
if (mxIsChar(prhs[0]) || (mxIsNumeric(prhs[0]) && !mxIsComplex(prhs[0])) || mxIsLogical(prhs[0])) {
int ret = -1;
mwSize inputsize = mxGetNumberOfElements(prhs[0]) * mxGetElementSize(prhs[0]);
mwSize buflen[2] = {0};
Expand Down

0 comments on commit 8291ebe

Please sign in to comment.