Skip to content

Commit 56a97af

Browse files
committed
fix small double check bug
1 parent 44bcf43 commit 56a97af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/+patchlib/vol2lib.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231
else
232232
islog = islogical(vol);
233233
if islog, vol = vol * 1; end
234-
assert(isfloat(vol), 'Currently, mex implementation only accepts class double');
234+
assert(isa(vol, 'double'), 'Currently, mex implementation only accepts class double');
235235
library = mexMemlib(vol, initsub, shift);
236236
if islog, library = logical(library); end
237237

0 commit comments

Comments
 (0)