Mercurial > hg > octave-max
changeset 10126:8687ce1c56da
Change signature of mxSetDimensions.
author | David Grundberg <davidg@cs.umu.se> |
---|---|
date | Mon, 18 Jan 2010 11:42:13 +0100 |
parents | 82ed1b4c3011 |
children | f21fdff5c906 |
files | src/ChangeLog src/mex.cc src/mexproto.h |
diffstat | 3 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-01-18 David Grundberg <davidg@cs.umu.se> + + * mexproto.h (mxSetDimensions): Change signature. + * mex.cc (mxSetDimensions): Dito. + 2010-01-17 Jaroslav Hajek <highegg@gmail.com> * DLD-FUNCTIONS/cellfun.cc (Fcellslices): Support dim argument, make
--- a/src/mex.cc +++ b/src/mex.cc @@ -2791,9 +2791,11 @@ } void -mxSetDimensions (mxArray *ptr, mwSize *dims, mwSize ndims) +mxSetDimensions (mxArray *ptr, const mwSize *dims, mwSize ndims) { - ptr->set_dimensions (static_cast<mwSize *> (maybe_unmark (dims)), ndims); + ptr->set_dimensions (static_cast<mwSize *> ( + maybe_unmark (const_cast<mwSize *> (dims))), + ndims); } // Data extractors.
--- a/src/mexproto.h +++ b/src/mexproto.h @@ -182,7 +182,7 @@ /* Dimension setters. */ extern OCTINTERP_API void mxSetM (mxArray *ptr, mwSize M); extern OCTINTERP_API void mxSetN (mxArray *ptr, mwSize N); -extern OCTINTERP_API void mxSetDimensions (mxArray *ptr, mwSize *dims, mwSize ndims); +extern OCTINTERP_API void mxSetDimensions (mxArray *ptr, const mwSize *dims, mwSize ndims); /* Data extractors. */ extern OCTINTERP_API double *mxGetPi (const mxArray *ptr);