changeset 5900:264f3fd4b27f octave-forge

support of logical data added
author schloegl
date Tue, 11 Aug 2009 07:54:06 +0000
parents ff7e7b9efa87
children 1fc289c476e5
files extra/NaN/src/histo_mex.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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;