diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-12-06 09:32:19 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-12-06 09:32:19 +0000 |
commit | 3cef0a39bc70308fd5a1fb3783c5f4ca716aca80 (patch) | |
tree | f3f161169d64f18b3820131ea431e68ac4b2486d /src/list.h | |
parent | 2408f61837aaaba5590d290008721186ea9f011e (diff) | |
download | libbu++-3cef0a39bc70308fd5a1fb3783c5f4ca716aca80.tar.gz libbu++-3cef0a39bc70308fd5a1fb3783c5f4ca716aca80.tar.bz2 libbu++-3cef0a39bc70308fd5a1fb3783c5f4ca716aca80.tar.xz libbu++-3cef0a39bc70308fd5a1fb3783c5f4ca716aca80.zip |
I corrected a peculiar heap corner case that caused an infinite loop.
Diffstat (limited to '')
-rw-r--r-- | src/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -240,7 +240,7 @@ namespace Bu | |||
240 | return *this; | 240 | return *this; |
241 | } | 241 | } |
242 | 242 | ||
243 | bool operator==( const MyType &rhs ) | 243 | bool operator==( const MyType &rhs ) const |
244 | { | 244 | { |
245 | if( getSize() != rhs.getSize() ) | 245 | if( getSize() != rhs.getSize() ) |
246 | return false; | 246 | return false; |
@@ -255,7 +255,7 @@ namespace Bu | |||
255 | return true; | 255 | return true; |
256 | } | 256 | } |
257 | 257 | ||
258 | bool operator!=( const MyType &rhs ) | 258 | bool operator!=( const MyType &rhs ) const |
259 | { | 259 | { |
260 | return !(*this == rhs); | 260 | return !(*this == rhs); |
261 | } | 261 | } |