diff options
Diffstat (limited to 'src/core/overflowsafe_type.hpp')
-rw-r--r-- | src/core/overflowsafe_type.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/overflowsafe_type.hpp b/src/core/overflowsafe_type.hpp index dda08d96c..cfc245c6c 100644 --- a/src/core/overflowsafe_type.hpp +++ b/src/core/overflowsafe_type.hpp @@ -15,7 +15,7 @@ /** * Overflow safe template for integers, i.e. integers that will never overflow - * you multiply the maximum value with 2, or add 2, or substract somethng from + * you multiply the maximum value with 2, or add 2, or subtract something from * the minimum value, etc. * @param T the type these integers are stored with. * @param T_MAX the maximum value for the integers. @@ -54,7 +54,7 @@ public: return *this; } - /* Operators for addition and substraction */ + /* Operators for addition and subtraction */ inline OverflowSafeInt operator + (const OverflowSafeInt& other) const { OverflowSafeInt result = *this; result += other; return result; } inline OverflowSafeInt operator + (const int other) const { OverflowSafeInt result = *this; result += (int64)other; return result; } inline OverflowSafeInt operator + (const uint other) const { OverflowSafeInt result = *this; result += (int64)other; return result; } |