Skip to content

Commit

Permalink
fix error for expecting an ending object mark when count is given
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Oct 26, 2023
1 parent 0900704 commit 7ab1b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loadbj.m
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@
object.(encodevarname(str,varargin{:}))=val;
end
[cc, pos]=next_char(inputstr,pos);
if cc == '}' || (count>=0 && num>=count)
if (count>=0 && num>=count) || cc == '}'
break;
end
end
Expand Down

0 comments on commit 7ab1b6e

Please sign in to comment.