Skip to content

Commit

Permalink
Inconsequential change in sumFrames MEX source
Browse files Browse the repository at this point in the history
Add explicit cast from ptrdiff_t to size_t to avoid compiler warning.
  • Loading branch information
kqshan committed Dec 7, 2016
1 parent e583ef8 commit e4f38a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @MoDT/mex_src/sumFrames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
}

// Allocate memory for the outputs (initally filled with zeroes)
size_t dims[] = {D, K, T};
size_t dims[] = {(size_t)D, (size_t)K, (size_t)T};
mxArray *mx_wzuY = mxCreateNumericArray(3, dims, mxDOUBLE_CLASS, mxREAL);
double *wzuY = mxGetPr(mx_wzuY);
mxArray *mx_sumwzu = mxCreateDoubleMatrix(K, T, mxREAL);
Expand Down

0 comments on commit e4f38a3

Please sign in to comment.