mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +02:00
put back branching for signed Type
This commit is contained in:
parent
5c2348cf0d
commit
b7d779bb25
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
inline SequenceNumber& operator--() {
|
inline SequenceNumber& operator--() {
|
||||||
_value = (_value - 1) % (MAX + 1);
|
_value = (_value == 0) ? MAX : --_value;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
inline SequenceNumber operator++(int) {
|
inline SequenceNumber operator++(int) {
|
||||||
|
|
Loading…
Reference in a new issue