Fix assert.

This commit is contained in:
Bartosz Taudul 2017-12-10 22:42:25 +01:00
parent 398eecbb94
commit 4d9ae83abd

View File

@ -1361,7 +1361,7 @@ void View::UpdateLockCount( LockMap& lockmap, size_t pos )
break;
case LockEvent::Type::Obtain:
assert( lockCount < std::numeric_limits<uint8_t>::max() );
assert( ( waitList | tbit ) != 0 );
assert( ( waitList & tbit ) != 0 );
waitList &= ~tbit;
lockingThread = tl->thread;
lockCount++;