From e4f38a331b7af76d8e2e5836dec6f17284d41d62 Mon Sep 17 00:00:00 2001 From: Kevin Shan Date: Wed, 7 Dec 2016 12:42:20 -0800 Subject: [PATCH] Inconsequential change in sumFrames MEX source Add explicit cast from ptrdiff_t to size_t to avoid compiler warning. --- @MoDT/mex_src/sumFrames.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@MoDT/mex_src/sumFrames.cpp b/@MoDT/mex_src/sumFrames.cpp index 83425d9..642cbc0 100644 --- a/@MoDT/mex_src/sumFrames.cpp +++ b/@MoDT/mex_src/sumFrames.cpp @@ -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);