From 6b569fcb2222ce2536999e5b43ea3631c735a472 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 14 Feb 2013 01:05:31 +0000 Subject: [PATCH] [Matlab] Fixed error reporting when importing Kinetics from a file --- src/matlab/kineticsmethods.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matlab/kineticsmethods.cpp b/src/matlab/kineticsmethods.cpp index 43ac2e28b..c61b0f2ca 100644 --- a/src/matlab/kineticsmethods.cpp +++ b/src/matlab/kineticsmethods.cpp @@ -24,10 +24,10 @@ void kineticsmethods(int nlhs, mxArray* plhs[], int in2 = getInt(prhs[5]); int in3 = getInt(prhs[6]); int in4 = getInt(prhs[7]); - vv = (double) newKineticsFromXML(root, iph, in1, in2, in3, in4); + int p = (int) newKineticsFromXML(root, iph, in1, in2, in3, in4); plhs[0] = mxCreateNumericMatrix(1,1,mxDOUBLE_CLASS,mxREAL); double* h = mxGetPr(plhs[0]); - *h = vv; + *h = (double) p; return; }