stage3/narrow_candidate_datatypes.cc
changeset 427 eb9bc99944d9
parent 426 78f31e12fc52
child 428 42d02558ebd9
equal deleted inserted replaced
426:78f31e12fc52 427:eb9bc99944d9
   737 		}
   737 		}
   738 	}
   738 	}
   739 
   739 
   740 	if (NULL != selected_type) {
   740 	if (NULL != selected_type) {
   741 		symbol->l_exp->datatype = selected_type;
   741 		symbol->l_exp->datatype = selected_type;
   742 		symbol->l_exp->accept(*this);
       
   743 		symbol->r_exp->datatype = selected_type;
   742 		symbol->r_exp->datatype = selected_type;
   744 		symbol->r_exp->accept(*this);
       
   745 	}
   743 	}
   746 	else
   744 	else
   747 		ERROR;
   745 		ERROR;
       
   746 
       
   747 	symbol->l_exp->accept(*this);
       
   748 	symbol->r_exp->accept(*this);
   748 	return NULL;
   749 	return NULL;
   749 }
   750 }
   750 
   751 
   751 void *narrow_candidate_datatypes_c::visit(notequ_expression_c *symbol)  {
   752 void *narrow_candidate_datatypes_c::visit(notequ_expression_c *symbol)  {
   752 	symbol_c * selected_type = NULL;
   753 	symbol_c * selected_type = NULL;