From 4e3730f8f4099c37be14d7c0b62940b91509b405 Mon Sep 17 00:00:00 2001 From: Huud Date: Tue, 20 Feb 2018 13:09:34 +0300 Subject: [PATCH] Utilities: Fix subtraction operation function in FixedInt class (#2313) --- common/include/Utilities/FixedPointTypes.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/include/Utilities/FixedPointTypes.inl b/common/include/Utilities/FixedPointTypes.inl index 79c2be0d57..c4d8579ac3 100644 --- a/common/include/Utilities/FixedPointTypes.inl +++ b/common/include/Utilities/FixedPointTypes.inl @@ -51,7 +51,7 @@ FixedInt FixedInt::operator+(const FixedInt &ri template FixedInt FixedInt::operator-(const FixedInt &right) const { - return FixedInt().SetRaw(Raw + right.Raw); + return FixedInt().SetRaw(Raw - right.Raw); } template @@ -63,7 +63,7 @@ FixedInt &FixedInt::operator+=(const FixedInt & template FixedInt &FixedInt::operator-=(const FixedInt &right) { - return SetRaw(Raw + right.Raw); + return SetRaw(Raw - right.Raw); } template