Mercurial > forge
diff extra/NaN/src/histo_mex.cpp @ 5900:264f3fd4b27f octave-forge
support of logical data added
author | schloegl |
---|---|
date | Tue, 11 Aug 2009 07:54:06 +0000 |
parents | d14e3342cb28 |
children | ea89f0ae2495 |
line wrap: on
line diff
--- a/extra/NaN/src/histo_mex.cpp Sun Aug 09 14:28:02 2009 +0000 +++ b/extra/NaN/src/histo_mex.cpp Tue Aug 11 07:54:06 2009 +0000 @@ -262,7 +262,11 @@ } Sort.Type = mxGetClassID(PInputs[0]); Sort.Table = (uint8_t*) mxGetData(PInputs[0]); + switch (mxGetClassID(PInputs[0])) { + case mxLOGICAL_CLASS: + Sort.Size = sizeof(mxLogical); + break; case mxINT8_CLASS: case mxUINT8_CLASS: Sort.Size = 1;