Fix bug related to FB invocation of FB instances declared as VAR_EXTERN.
authorMario de Sousa <msousa@fe.up.pt>
Thu, 04 Apr 2013 18:55:20 +0100
changeset 814 a98a4dad904a
parent 812 6679b6b21214
child 815 4cfca12bf850
child 823 c95f42f28b69
Fix bug related to FB invocation of FB instances declared as VAR_EXTERN.
absyntax_utils/search_fb_instance_decl.cc
--- a/absyntax_utils/search_fb_instance_decl.cc	Wed Apr 03 19:49:52 2013 +0100
+++ b/absyntax_utils/search_fb_instance_decl.cc	Thu Apr 04 18:55:20 2013 +0100
@@ -105,7 +105,7 @@
 /* name_list ',' fb_name */
 void *search_fb_instance_decl_c::visit(external_declaration_c *symbol) {
   if (compare_identifiers(symbol->global_var_name, search_name) == 0)
-	return symbol->specification;
+    return spec_init_sperator_c::get_spec(symbol->specification);
   return NULL;
 }