[pypy-dev] A small patch

Ben.Young at risk.sungard.com Ben.Young at risk.sungard.com
Wed Jun 15 15:04:35 CEST 2005

Hi Everyone,

After all my pointless question asking, I thought it would be best if I 
actually contributed something. 

Would someone mind applying this patch what allows more tests to compile 
on cygwin, using VC++ as the compiler. It seems to object to empty array 


Index: translator/c/node.py
--- translator/c/node.py        (revision 13434)
+++ translator/c/node.py        (working copy)
@@ -279,6 +279,9 @@
         if self.T.OF == Void:
             yield '\t%d' % len(self.obj.items)
             yield '}'
+        elif len(self.obj.items) == 0:
+            yield '\t0, NULL'
+            yield '}'
             yield '\t%d, {' % len(self.obj.items)
             for j in range(len(self.obj.items)):

More information about the Pypy-dev mailing list