comparison src/mex.cc @ 14839:e2ac6e2c588a stable

use mwSize for size arguments to mxArray_sparse constructor (bug #36783) * mex.cc (mxArray_sparse::mxArray_sparse): Declare size arguments mwSize, not int.
author John W. Eaton <jwe@octave.org>
date Wed, 04 Jul 2012 12:55:03 -0400
parents 72c96de7a403
children 355ff41f3f97
comparison
equal deleted inserted replaced
14820:452be8dab49b 14839:e2ac6e2c588a
1512 1512
1513 class mxArray_sparse : public mxArray_matlab 1513 class mxArray_sparse : public mxArray_matlab
1514 { 1514 {
1515 public: 1515 public:
1516 1516
1517 mxArray_sparse (mxClassID id_arg, int m, int n, int nzmax_arg, 1517 mxArray_sparse (mxClassID id_arg, mwSize m, mwSize n, mwSize nzmax_arg,
1518 mxComplexity flag = mxREAL) 1518 mxComplexity flag = mxREAL)
1519 : mxArray_matlab (id_arg, m, n), nzmax (nzmax_arg), 1519 : mxArray_matlab (id_arg, m, n), nzmax (nzmax_arg),
1520 pr (calloc (nzmax, get_element_size ())), 1520 pr (calloc (nzmax, get_element_size ())),
1521 pi (flag == mxCOMPLEX ? calloc (nzmax, get_element_size ()) : 0), 1521 pi (flag == mxCOMPLEX ? calloc (nzmax, get_element_size ()) : 0),
1522 ir (static_cast<mwIndex *> (calloc (nzmax, sizeof (mwIndex)))), 1522 ir (static_cast<mwIndex *> (calloc (nzmax, sizeof (mwIndex)))),