diff options
author | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-04-10 12:05:01 +0200 |
---|---|---|
committer | Willem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl> | 2015-04-10 12:05:01 +0200 |
commit | 306b3b5613ccb039122d38e8deb1e0ecc9e43403 (patch) | |
tree | d903f1b564250880cb8e4ed1cf194c839071d73a /matlab | |
parent | 4906a07eccbb6b5a785c3c6f98e4389a5d6d425b (diff) | |
download | astra-306b3b5613ccb039122d38e8deb1e0ecc9e43403.tar.gz astra-306b3b5613ccb039122d38e8deb1e0ecc9e43403.tar.bz2 astra-306b3b5613ccb039122d38e8deb1e0ecc9e43403.tar.xz astra-306b3b5613ccb039122d38e8deb1e0ecc9e43403.zip |
Check input to mex_data3d/link is single
Diffstat (limited to 'matlab')
-rw-r--r-- | matlab/mex/astra_mex_data3d_c.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/matlab/mex/astra_mex_data3d_c.cpp b/matlab/mex/astra_mex_data3d_c.cpp index 32b0ba7..7efbdab 100644 --- a/matlab/mex/astra_mex_data3d_c.cpp +++ b/matlab/mex/astra_mex_data3d_c.cpp @@ -148,8 +148,8 @@ void astra_mex_data3d_link(int& nlhs, mxArray* plhs[], int& nrhs, const mxArray* return; } - if (data && !checkDataType(data)) { - mexErrMsgTxt("Data must be single or double."); + if (data && !mxIsSingle(data)) { + mexErrMsgTxt("Data must be single."); return; } |