diff --git a/json.cpp b/json.cpp index 9ae1cb9..d43d45b 100644 --- a/json.cpp +++ b/json.cpp @@ -391,13 +391,9 @@ json::reader::push_result json::reader::push_object(const char next) if(next != '"') return REJECTED; this->sub_reader = new kvp_reader(); #if DEBUG - assert( - #endif - this->sub_reader->push(next) - #if DEBUG - == ACCEPTED); + assert(this->sub_reader->push(next) == ACCEPTED); #else - ; + this->sub_reader->push(next); #endif this->set_state(OBJECT_READING_ENTRY); return ACCEPTED;