Add assert; spelling.

This commit is contained in:
Axel Naumann 2015-06-08 14:48:24 +02:00 committed by sftnight
parent 439869b8c2
commit 886f586b08

View File

@ -343,7 +343,7 @@ namespace cling {
ParseResult = kSuccessWithWarnings;
}
// Empty transaction send it back to the pool.
// Empty transaction, send it back to the pool.
if (T->empty()) {
assert((!m_Consumer->getTransaction()
|| (m_Consumer->getTransaction() == T))
@ -608,6 +608,7 @@ namespace cling {
if (!T->getParent()) {
// Remove from the queue
assert(T == m_Transactions.back() && "Out of order transaction removal");
m_Transactions.pop_back();
if (!m_Transactions.empty())
m_Transactions.back()->setNext(0);