diff python/c3/analyse.py @ 222:c3f1ce8b638f

Fixup of parser
author Windel Bouwman
date Tue, 09 Jul 2013 17:36:31 +0200
parents 3f6c30a5d234
children 1c7364bd74c7
line wrap: on
line diff
--- a/python/c3/analyse.py	Mon Jul 08 22:21:44 2013 +0200
+++ b/python/c3/analyse.py	Tue Jul 09 17:36:31 2013 +0200
@@ -84,6 +84,8 @@
     def findRefs(self, sym):
         if type(sym) in [Variable, Constant]:
             sym.typ = self.resolveType(sym.typ, sym.scope)
+        elif type(sym) is TypeCast:
+            sym.to_type = self.resolveType(sym.to_type, sym.scope)
         elif type(sym) is VariableUse:
             sym.target = self.resolveDesignator(sym.target, sym.scope)
         elif type(sym) is FunctionCall: