THRIFT-3066 C++ TDenseProtocol assert modifies instead of checks

Client: C++
Patch: James E. King, III <jim.king@simplivity.com>
This commit is contained in:
Jens Geyer 2015-04-03 12:52:01 +02:00
parent 4aa95df383
commit 434edf6d5d

View File

@ -155,7 +155,7 @@ inline void TDenseProtocol::stateTransition() {
// If this is the end of the top-level write, we should have just popped
// the TypeSpec passed to the constructor.
if (ts_stack_.empty()) {
assert(old_tts = type_spec_);
assert(old_tts == type_spec_);
return;
}