Skip to content

Commit ec22f24

Browse files
authored
darwin build has been fixed (#4661)
1 parent c3a3f37 commit ec22f24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/library/yql/providers/s3/path_generator/yql_s3_path_generator.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ bool IsOverflow(ui64 a, ui64 b) {
157157
return b > diff;
158158
}
159159

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

@@ -213,7 +213,7 @@ TInstant AddUnit(TInstant current, int64_t interval, IPathGenerator::EIntervalUn
213213
}
214214

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

0 commit comments

Comments
 (0)