Fix bug in analysing real literals (thanks Andreas!)
authorMario de Sousa <msousa@fe.up.pt>
Mon, 06 Feb 2012 14:21:08 +0000
changeset 429 26bec44c591f
parent 428 42d02558ebd9
child 430 d7a6221f64d7
Fix bug in analysing real literals (thanks Andreas!)
stage3/fill_candidate_datatypes.cc
--- a/stage3/fill_candidate_datatypes.cc	Mon Feb 06 14:15:31 2012 +0000
+++ b/stage3/fill_candidate_datatypes.cc	Mon Feb 06 14:21:08 2012 +0000
@@ -174,7 +174,7 @@
 	calc_size = sizeoftype(symbol);
 	if (calc_size <= sizeoftype(&search_constant_type_c::real_type_name))
 		symbol->candidate_datatypes.push_back(&search_constant_type_c::real_type_name);
-	if (calc_size <= sizeoftype(&search_constant_type_c::real_type_name))
+	if (calc_size <= sizeoftype(&search_constant_type_c::lreal_type_name))
 		symbol->candidate_datatypes.push_back(&search_constant_type_c::lreal_type_name);
 	if (debug) std::cout << "ANY_REAL [" << symbol->candidate_datatypes.size() << "]" << std::endl;
 	return NULL;