Skip to content

Commit 4f06259

Browse files
committed
ошибка в сложении с датой
1 parent d617881 commit 4f06259

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/OneScript.Native/Runtime/DynamicOperations.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ public static BslValue Add(BslValue left, BslValue right)
2828
if (left is BslStringValue str)
2929
return BslStringValue.Create(str + right);
3030

31-
if (left is BslDateValue bslDate && right is BslNumericValue num)
32-
{
33-
return BslDateValue.Create(bslDate - (decimal) num);
34-
}
31+
if (left is BslDateValue bslDate)
32+
return BslDateValue.Create(bslDate + (decimal)right);
3533

3634
var dLeft = (decimal)left;
3735
var dRight = (decimal)right;

0 commit comments

Comments
 (0)