Skip to content

Commit

Permalink
avoid windows mex error
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed May 2, 2019
1 parent 2c59d1b commit d48a771
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 @@ -152,7 +152,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]){
free(temp);
}
if(nlhs>1){
int inputdim[2]={1,0};
dimtype inputdim[2]={1,0};
plhs[1]=mxCreateStructMatrix(1,1,2,metadata);
mxArray *val = mxCreateString(mxGetClassName(prhs[0]));
mxSetFieldByNumber(plhs[1],0,0, val);
Expand Down

0 comments on commit d48a771

Please sign in to comment.