Explorar o código

Fix problem with constant node in global

Yentl Van Tendeloo %!s(int64=7) %!d(string=hai) anos
pai
achega
cf7c7407b2
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      bootstrap/constructors.alc
  2. 1 1
      wrappers/modelverse_SCCD.py

+ 1 - 1
bootstrap/constructors.alc

@@ -115,7 +115,7 @@ String function construct_global(model : Element, list : Element):
 		elif (op == "const"):
 			log("CONST")
 			value = instantiate_value(model, "constant", "", create_value(!constant))
-			create_al_link(model, "constant_node", value, list_pop_final(list), "node")
+			create_al_link(model, "constant_node", value, instantiate_value(model, "Element", "", list_pop_final(list)), "node")
 		log("DONE")
 		create_al_link(model, "assign_value", assign, value, "value")
 

+ 1 - 1
wrappers/modelverse_SCCD.py

@@ -1,7 +1,7 @@
 """
 Generated by Statechart compiler by Glenn De Jonghe, Joeri Exelmans, Simon Van Mierlo, and Yentl Van Tendeloo (for the inspiration)
 
-Date:   Thu May 17 14:58:25 2018
+Date:   Thu May 17 15:56:18 2018
 
 Model author: Yentl Van Tendeloo
 Model name:   MvK Server