[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
This commit is contained in:
parent
37894ac0db
commit
455dafa639
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue