fix compiler crash - but not the underlying problem (see comments in #144)
authorStefan Behnel <scoder@users.berlios.de>
Fri, 10 Apr 2009 07:18:27 +0000 (09:18 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 10 Apr 2009 07:18:27 +0000 (09:18 +0200)
Cython/Compiler/Nodes.py

index e67f6af2f7e314ed4eba3d6075cefad82f221d91..5ea5cfa495c0ca9f6fe4a3309d175db6a85be92a 100644 (file)
@@ -458,7 +458,7 @@ class CArrayDeclaratorNode(CDeclaratorNode):
             size = self.dimension.get_constant_result_code()
             try:
                 size = int(size)
-            except ValueError:
+            except (ValueError, TypeError):
                 # runtime constant?
                 pass
         else: