Skip to content
Browse files

removing all members from a set is okay

  • Loading branch information...
1 parent 0d08440 commit c4420b4f715bfb138dd4dc1999891400ae911847 @arnt arnt committed Feb 12, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 server/integerset.cpp
View
5 server/integerset.cpp
@@ -409,8 +409,9 @@ void IntegerSet::remove( const IntegerSet & other )
while ( mine && hers ) {
while ( mine && mine->start < hers->start )
++mine;
- while ( hers && hers->start < mine->start )
- ++hers;
+ if ( mine )
+ while ( hers && hers->start < mine->start )
+ ++hers;
if ( mine && hers ) {
uint i = 0;
uint u = 0;

0 comments on commit c4420b4

Please sign in to comment.
Something went wrong with that request. Please try again.