mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-02-25 06:51:30 +00:00
Utilities: Fix subtraction operation function in FixedInt class (#2313)
This commit is contained in:
parent
41c49faa81
commit
4e3730f8f4
@ -51,7 +51,7 @@ FixedInt<Precision> FixedInt<Precision>::operator+(const FixedInt<Precision> &ri
|
||||
template <int Precision>
|
||||
FixedInt<Precision> FixedInt<Precision>::operator-(const FixedInt<Precision> &right) const
|
||||
{
|
||||
return FixedInt<Precision>().SetRaw(Raw + right.Raw);
|
||||
return FixedInt<Precision>().SetRaw(Raw - right.Raw);
|
||||
}
|
||||
|
||||
template <int Precision>
|
||||
@ -63,7 +63,7 @@ FixedInt<Precision> &FixedInt<Precision>::operator+=(const FixedInt<Precision> &
|
||||
template <int Precision>
|
||||
FixedInt<Precision> &FixedInt<Precision>::operator-=(const FixedInt<Precision> &right)
|
||||
{
|
||||
return SetRaw(Raw + right.Raw);
|
||||
return SetRaw(Raw - right.Raw);
|
||||
}
|
||||
|
||||
template <int Precision>
|
||||
|
Loading…
x
Reference in New Issue
Block a user