From 455dafa63982f71b5b89cfbf3c3fccd6510ad0b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Tue, 6 Sep 2011 11:05:01 +0000 Subject: [PATCH] [INTERPRETER] * BUG: DateAdd() does not raise an overflow error anymore when used on a time value. git-svn-id: svn://localhost/gambas/trunk@4096 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbx/gbx_date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/gbx/gbx_date.c b/main/gbx/gbx_date.c index 23645f603..2f928991f 100644 --- a/main/gbx/gbx_date.c +++ b/main/gbx/gbx_date.c @@ -729,7 +729,7 @@ __ADD_DATE_TIME: new_date -= fix_date; } - if (new_time < INT32_MIN || new_time > INT32_MAX || new_date <= 0 || new_date > INT32_MAX) + if (new_time < INT32_MIN || new_time > INT32_MAX || new_date < 0 || new_date > INT32_MAX) THROW(E_OVERFLOW); date->_date.date = (int)new_date;