ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/iom.h
(Generate patch)

Comparing gvpe/src/iom.h (file contents):
Revision 1.22 by pcg, Thu Nov 11 17:41:55 2004 UTC vs.
Revision 1.23 by pcg, Fri Nov 12 02:53:29 2004 UTC

72 void erase_unordered (unsigned int pos) 72 void erase_unordered (unsigned int pos)
73 { 73 {
74 watcher *w = (*this)[this->size () - 1]; 74 watcher *w = (*this)[this->size () - 1];
75 this->pop_back (); 75 this->pop_back ();
76 76
77 if (this->size ()) 77 if (!this->empty ())
78 if (((*this)[pos] = w)) // '=' is correct! 78 if (((*this)[pos] = w)) // '=' is correct!
79 w->active = pos + 1; 79 w->active = pos + 1;
80 } 80 }
81}; 81};
82 82

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines