|
|
|
@ -221,14 +221,14 @@ constexpr SFixed<Integer, Fraction> SFixed<Integer, Fraction>::operator -() cons |
|
|
|
|
template< unsigned Integer, unsigned Fraction > |
|
|
|
|
SFixed<Integer, Fraction> & SFixed<Integer, Fraction>::operator ++() |
|
|
|
|
{ |
|
|
|
|
this->value += (1 << FractionSize); |
|
|
|
|
this->value += (static_cast<InternalType>(1) << FractionSize); |
|
|
|
|
return *this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template< unsigned Integer, unsigned Fraction > |
|
|
|
|
SFixed<Integer, Fraction> & SFixed<Integer, Fraction>::operator --() |
|
|
|
|
{ |
|
|
|
|
this->value -= (1 << FractionSize); |
|
|
|
|
this->value -= (static_cast<InternalType>(1) << FractionSize); |
|
|
|
|
return *this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|