We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67a6289 commit 4118243Copy full SHA for 4118243
ydb/library/accessor/positive_integer.cpp
@@ -22,7 +22,7 @@ ui64 TPositiveControlInteger::Sub(const ui64 value) {
22
return Value;
23
}
24
25
-ui64 TPositiveControlInteger::GetDec() {
+ui64 TPositiveControlInteger::GetDec() const {
26
if (Value) {
27
return Value - 1;
28
} else {
ydb/library/accessor/positive_integer.h
@@ -21,7 +21,7 @@ class TPositiveControlInteger {
21
ui64 Dec() {
return Sub(1);
- ui64 GetDec();
+ ui64 GetDec() const;
ui64 Val() const;
bool operator!() const {
return !Value;
0 commit comments