diff options
author | alberth <alberth@openttd.org> | 2012-12-01 13:12:39 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2012-12-01 13:12:39 +0000 |
commit | 732e073261a0c9f2d644475ec800f5acae90ec94 (patch) | |
tree | ed921e856ce535c64e5542357fb942192a656df0 /src/core/overflowsafe_type.hpp | |
parent | 01d023ad3bd9f33c702aa523e2b8efbdbe3f61f9 (diff) | |
download | openttd-732e073261a0c9f2d644475ec800f5acae90ec94.tar.xz |
(svn r24776) -Doc: Typo fixes, additions, and additional dots collected from various sources (including Eagle_rainbow, MinchinWeb)
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; } |