Skip to content

Commit

Permalink
Revert "darwin build has been fixed (#4661)"
Browse files Browse the repository at this point in the history
This reverts commit ec22f24.
  • Loading branch information
dorooleg committed May 21, 2024
1 parent 148c858 commit 93991ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ bool IsOverflow(ui64 a, ui64 b) {
return b > diff;
}

bool IsOverflowUi64I64(ui64 a, i64 b) {
bool IsOverflow(ui64 a, i64 b) {
return b > 0 ? IsOverflow(a, (ui64)b) : a < (ui64)-b;
}

Expand Down Expand Up @@ -213,7 +213,7 @@ TInstant AddUnit(TInstant current, int64_t interval, IPathGenerator::EIntervalUn
}

const i64 deltaValue = (interval > 0 ? 1LL : -1LL) * delta.GetValue();
if (IsOverflowUi64I64(current.GetValue(), deltaValue)) {
if (IsOverflow(current.GetValue(), deltaValue)) {
ythrow yexception() << "Timestamp is overflowed";
}

Expand Down

0 comments on commit 93991ff

Please sign in to comment.