Fix compilation of numbers added (or substracted) to dates.
[COMPILER] * BUG: Fix compilation of numbers added (or substracted) to dates.
This commit is contained in:
parent
87dec4871e
commit
d15b8726cb
1 changed files with 1 additions and 1 deletions
|
@ -468,9 +468,9 @@ static void trans_operation(short op, short nparam, PATTERN previous)
|
|||
|
||||
case RST_ADD:
|
||||
type = Max(get_type_id(0, nparam), get_type_id(1, nparam));
|
||||
ftype = TYPE_make_simple(type);
|
||||
if (type == T_DATE)
|
||||
type = T_FLOAT;
|
||||
ftype = TYPE_make_simple(type);
|
||||
break;
|
||||
|
||||
case RST_AND:
|
||||
|
|
Loading…
Reference in a new issue