From 8291ebeb777e87caacab115b77c0d0ccba6ff800 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Tue, 16 Aug 2022 10:33:02 -0400 Subject: [PATCH] fix a warning picked by fedora package building flags --- src/zmat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zmat.cpp b/src/zmat.cpp index d5970b4..f60ec9b 100644 --- a/src/zmat.cpp +++ b/src/zmat.cpp @@ -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};