From 923eadcef35aa743fc458e3dfb097888f082f359 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stepan@adjemian.eu>
Date: Mon, 6 Jan 2020 18:22:23 +0100
Subject: [PATCH] Added missing argument.

---
 src/@dseries/backcast.m | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/@dseries/backcast.m b/src/@dseries/backcast.m
index b26b0b9..8dff980 100644
--- a/src/@dseries/backcast.m
+++ b/src/@dseries/backcast.m
@@ -31,7 +31,12 @@ function q = backcast(o, p, diff)  % --*-- Unitary tests --*--
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 q = copy(o);
-q.backcast_(p);
+
+if nargin>2
+    q.backcast_(p, diff);
+else
+    q.backcast_(p);
+end
 
 return
 
-- 
GitLab