Clean up warnings

* msvc
 * pvs-studio
This commit is contained in:
Jason Turner
2016-12-06 10:31:36 -07:00
parent 92c2ade1cd
commit ce62706fea
5 changed files with 42 additions and 4 deletions

View File

@@ -433,13 +433,13 @@ namespace chaiscript
try {
if (lhs.is_undef()) {
if ((!this->children.empty()
if (!this->children.empty()
&& ((this->children[0]->identifier == AST_Node_Type::Reference)
|| (!this->children[0]->children.empty()
&& this->children[0]->children[0]->identifier == AST_Node_Type::Reference)
)
)
)
{
/// \todo This does not handle the case of an unassigned reference variable
/// being assigned outside of its declaration