Skip to content

Commit 6a9631c

Browse files
authored
Fix strange compile error (#20614)
1 parent cb76c1d commit 6a9631c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/core/tx/schemeshard/schemeshard_billing_helpers.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ TMeteringStats& operator += (TMeteringStats& value, const TMeteringStats& other)
2828
}
2929

3030
TMeteringStats& operator -= (TMeteringStats& value, const TMeteringStats& other) {
31-
const auto safeSub = [](ui64 x, ui64 y) {
31+
const auto safeSub = [](ui64 x, ui64 y) -> ui64 {
3232
if (Y_LIKELY(x >= y)) {
3333
return x - y;
3434
}
3535
Y_ASSERT(false);
36-
return 0ul;
36+
return 0;
3737
};
3838

3939
value.SetUploadRows(safeSub(value.GetUploadRows(), other.GetUploadRows()));

0 commit comments

Comments
 (0)