# HG changeset patch # User John W. Eaton # Date 1341420903 14400 # Node ID e2ac6e2c588a3c33a3a53eea2f045d8b6cacd4c1 # Parent 452be8dab49b148120b60222d155ad8d244ece1c use mwSize for size arguments to mxArray_sparse constructor (bug #36783) * mex.cc (mxArray_sparse::mxArray_sparse): Declare size arguments mwSize, not int. diff --git a/src/mex.cc b/src/mex.cc --- a/src/mex.cc +++ b/src/mex.cc @@ -1514,7 +1514,7 @@ { public: - mxArray_sparse (mxClassID id_arg, int m, int n, int nzmax_arg, + mxArray_sparse (mxClassID id_arg, mwSize m, mwSize n, mwSize nzmax_arg, mxComplexity flag = mxREAL) : mxArray_matlab (id_arg, m, n), nzmax (nzmax_arg), pr (calloc (nzmax, get_element_size ())),