Commit 8015f1ce authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Dynare++: compatibility fix for MATLAB 7.12 (R2011a)

(cherry picked from commit a23f4b7e)
parent a6caf550
......@@ -133,7 +133,7 @@ void SylvParams::setArrayNames(int& num, const char** names) const
#if defined(MATLAB_MEX_FILE) || defined(OCTAVE_MEX_FILE)
mxArray* SylvParams::DoubleParamItem::createMatlabArray() const
return mxCreateScalarDouble(value);
return mxCreateDoubleScalar(value);
mxArray* SylvParams::IntParamItem::createMatlabArray() const
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment