From bd73f401ddb1360c4dba5155c526fa2c5bed9e58 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Wed, 18 Feb 2015 04:27:16 +0100
Subject: [PATCH] fix test for dates creation when creating annual dates

---
 src/@dates/dates.m | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/@dates/dates.m b/src/@dates/dates.m
index 6694253..d5da474 100644
--- a/src/@dates/dates.m
+++ b/src/@dates/dates.m
@@ -1,6 +1,6 @@
 classdef dates<handle
 
-% Copyright (C) 2014 Dynare Team
+% Copyright (C) 2014-2015 Dynare Team
 %
 % This code is free software: you can redistribute it and/or modify
 % it under the terms of the GNU General Public License as published by
@@ -88,7 +88,7 @@ classdef dates<handle
                     o.freq = varargin{1};
                 end
                 if isequal(o.freq, 1)
-                    if (isnumeric(varargin{2}) && isvector(varargin{2}) && isint(varargin{2}))
+                    if (isnumeric(varargin{2}) && isvector(varargin{2}) && all(isint(varargin{2})))
                         o.time = [varargin{2}, ones(length(varargin{2}),1)];
                         o.ndat = size(o.time,1);
                         return
@@ -263,4 +263,4 @@ end % classdef
 %$ end
 %$
 %$ T = all(t);
-%@eof:8
\ No newline at end of file
+%@eof:8
-- 
GitLab