summaryrefslogtreecommitdiffstats
path: root/matlab/mex
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-04-10 12:05:01 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2015-04-10 12:05:01 +0200
commit306b3b5613ccb039122d38e8deb1e0ecc9e43403 (patch)
treed903f1b564250880cb8e4ed1cf194c839071d73a /matlab/mex
parent4906a07eccbb6b5a785c3c6f98e4389a5d6d425b (diff)
downloadastra-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/mex')
-rw-r--r--matlab/mex/astra_mex_data3d_c.cpp4
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;
}