Fix bug introduced in use_dll mode in 23a08a3662

Ref. #40
issue#70
Sébastien Villemot 2020-01-20 18:33:31 +01:00
parent b0c819cb03
commit a8b7bd31c5
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 1 deletions

View File

@ -1780,7 +1780,7 @@ DynamicModel::writeDynamicCFile(const string &basename) const
<< "void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])" << endl
<< "{" << endl
<< " /* Check that no derivatives of higher order than computed are being requested */" << endl
<< " if (nlhs > " << computed_derivs_order << ")" << endl
<< " if (nlhs > " << computed_derivs_order + 1 << ")" << endl
<< R"( mexErrMsgTxt("Derivatives of higher order than computed have been requested");)" << endl
<< " /* Create a pointer to the input matrix y. */" << endl
<< " double *y = mxGetPr(prhs[0]);" << endl