[Pyrex] patch for 0.9.3

Simon Burton simon at arrowtheory.com
Thu Aug 18 10:12:49 CEST 2005


I've been autogenerating big gobs of pyrex code, and found a little bug.

Patch attached.

Simon.

-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 
-------------- next part --------------
diff -ur Pyrex/Compiler/ExprNodes.py /usr/local/lib/python2.3/site-packages/Pyrex/Compiler/ExprNodes.py
--- Pyrex/Compiler/ExprNodes.py	2004-05-01 11:15:07.000000000 +0100
+++ /usr/local/lib/python2.3/site-packages/Pyrex/Compiler/ExprNodes.py	2005-07-21 21:23:49.000000000 +0100
@@ -2196,6 +2196,7 @@
         elif arg_type.is_void:
             error(self.pos, "Cannot take sizeof void")
         elif not arg_type.is_complete():
+            arg_code = arg_type.declaration_code("")
             error(self.pos, "Cannot take sizeof incomplete type '%s'" % arg_code)
         self.type = PyrexTypes.c_int_type
         


More information about the Pyrex mailing list