0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

fix condition and make normal assert

This commit is contained in:
Mathias Stearn 2011-05-06 19:37:23 -04:00
parent 04ac31d075
commit c25588e030

View File

@ -288,7 +288,7 @@ namespace mongo {
*/
template< class V >
inline int BucketBasics<V>::_alloc(int bytes) {
dassert( this->emptySize > bytes );
assert( this->emptySize >= bytes );
this->topSize += bytes;
this->emptySize -= bytes;
int ofs = totalDataSize() - this->topSize;