Skip to content
Snippets Groups Projects
Commit 4f36bf1c authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed bug in pop method.

Avoid crash if o is empty.
parent 62eaa825
Branches
No related tags found
No related merge requests found
......@@ -28,6 +28,10 @@ function o = pop(o, p) % --*-- Unitary tests --*--
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if o.isempty()
return
end
if nargin<2
% Remove last date
o.ndat = o.ndat-1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment