fix PyTypeTestNode after iter-dict changes
authorStefan Behnel <scoder@users.berlios.de>
Tue, 25 Nov 2008 20:18:13 +0000 (21:18 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Tue, 25 Nov 2008 20:18:13 +0000 (21:18 +0100)
Cython/Compiler/ExprNodes.py

index 9b4eb84c673bd4b6ac2586f857f311dbb9da7101..a6e381e8afb7a1392627aee870f5434b35c0cf98 100644 (file)
@@ -4521,7 +4521,7 @@ class PyTypeTestNode(CoercionNode):
     
     def generate_result_code(self, code):
         if self.type.typeobj_is_available():
-            if not dst_type.is_builtin_type:
+            if not self.type.is_builtin_type:
                 code.globalstate.use_utility_code(type_test_utility_code)
             code.putln(
                 "if (!(%s)) %s" % (