From a23de79033c0f4038df366a57b8d23669d8c1100 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Mon, 9 Jan 2017 16:12:18 +0100
Subject: [PATCH] =?UTF-8?q?require=20that=20=E2=80=98precision=E2=80=99=20?=
 =?UTF-8?q?argument=20to=20table=20take=20non-negative=20integers?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/@report_table/report_table.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/@report_table/report_table.m b/src/@report_table/report_table.m
index effd07e..023987f 100644
--- a/src/@report_table/report_table.m
+++ b/src/@report_table/report_table.m
@@ -12,7 +12,7 @@ function o = report_table(varargin)
 % SPECIAL REQUIREMENTS
 %   none
 
-% Copyright (C) 2013-2014 Dynare Team
+% Copyright (C) 2013-2017 Dynare Team
 %
 % This file is part of Dynare.
 %
@@ -97,7 +97,7 @@ if length(o.title) ~= length(o.titleFormat)
 end
 assert(islogical(o.showHlines), '@report_table.report_table: showHlines must be true or false');
 assert(islogical(o.showVlines), '@report_table.report_table: showVlines must be true or false');
-assert(isint(o.precision), '@report_table.report_table: precision must be an int');
+assert(isint(o.precision) && o.precision >= 0, '@report_table.report_table: precision must be a non-negative integer');
 assert(isempty(o.range) || length(o.range) <=2 && allCellsAreDatesRange(o.range), ...
        ['@report_table.report_table: range is specified as a dates range, e.g. ' ...
         '''dates(''1999q1''):dates(''1999q3'')''.']);
-- 
GitLab