plcopen/structures.py
changeset 414 8d9e7edc0195
parent 404 d5a5eaea7844
child 405 2c598d24205f
child 427 22d16c457d87
--- a/plcopen/structures.py	Thu Aug 20 09:03:31 2009 -0600
+++ b/plcopen/structures.py	Wed Sep 02 08:30:34 2009 -0600
@@ -469,6 +469,8 @@
         outs = reduce(lambda a,b: a or b, map(lambda testtype : IsOfType(fdecl["outputs"][0][1],testtype), OutTypes))
         inps = reduce(lambda a,b: a or b, map(lambda testtype : IsOfType(fdecl["inputs"][0][1],testtype), InTypes))
         if inps and outs and fdecl["outputs"][0][1] != fdecl["inputs"][0][1]:
+             if Format[1] is None:
+                 return (Format[0], "__move_", "IN_type")
              return Format
     
     return None