stage3/fill_candidate_datatypes.cc
changeset 429 26bec44c591f
parent 427 eb9bc99944d9
child 431 5792016eedd8
equal deleted inserted replaced
428:42d02558ebd9 429:26bec44c591f
   172 	int calc_size;
   172 	int calc_size;
   173 
   173 
   174 	calc_size = sizeoftype(symbol);
   174 	calc_size = sizeoftype(symbol);
   175 	if (calc_size <= sizeoftype(&search_constant_type_c::real_type_name))
   175 	if (calc_size <= sizeoftype(&search_constant_type_c::real_type_name))
   176 		symbol->candidate_datatypes.push_back(&search_constant_type_c::real_type_name);
   176 		symbol->candidate_datatypes.push_back(&search_constant_type_c::real_type_name);
   177 	if (calc_size <= sizeoftype(&search_constant_type_c::real_type_name))
   177 	if (calc_size <= sizeoftype(&search_constant_type_c::lreal_type_name))
   178 		symbol->candidate_datatypes.push_back(&search_constant_type_c::lreal_type_name);
   178 		symbol->candidate_datatypes.push_back(&search_constant_type_c::lreal_type_name);
   179 	if (debug) std::cout << "ANY_REAL [" << symbol->candidate_datatypes.size() << "]" << std::endl;
   179 	if (debug) std::cout << "ANY_REAL [" << symbol->candidate_datatypes.size() << "]" << std::endl;
   180 	return NULL;
   180 	return NULL;
   181 }
   181 }
   182 
   182