Skip to content

Commit

Permalink
add parentheses for test condition, #8
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed May 5, 2020
1 parent 600c2d1 commit 2951909
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loadh5.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
releaseid=0;
v=ver('MATLAB');
if(~isempty(v))
releaseid=datenum(v.Date);
releaseid=datenum(v(1).Date);
end

if(isfield(opt,'order') && strcmpi(opt.order,'alphabet') || releaseid<datenum('1-Jan-2015') )
if((isfield(opt,'order') && strcmpi(opt.order,'alphabet')) || releaseid<datenum('1-Jan-2015') )
opt.order='H5_INDEX_NAME';
else
opt.order='H5_INDEX_CRT_ORDER';
Expand Down

0 comments on commit 2951909

Please sign in to comment.