[pypy-svn] r45464 - pypy/dist/pypy/translator/sandbox

arigo at codespeak.net arigo at codespeak.net
Thu Aug 2 19:24:38 CEST 2007


Author: arigo
Date: Thu Aug  2 19:24:37 2007
New Revision: 45464

Modified:
   pypy/dist/pypy/translator/sandbox/rsandbox.py
Log:
Oups, lltype.nullptr returns a SomePtr(const=<* None>).  More grumbles.


Modified: pypy/dist/pypy/translator/sandbox/rsandbox.py
==============================================================================
--- pypy/dist/pypy/translator/sandbox/rsandbox.py	(original)
+++ pypy/dist/pypy/translator/sandbox/rsandbox.py	Thu Aug  2 19:24:37 2007
@@ -119,7 +119,7 @@
         msg.packstring(chr(CFalse) + chr(CFalse))
         msg.packsize_t(rffi.cast(rffi.SIZE_T, CFalse))
         msg.packbuf(buf, CFalse * 5, CFalse * 6)
-        msg.packccharp(lltype.nullptr(rffi.CCHARP.TO))
+        msg.packccharp(rffi.str2charp(str(CFalse)))
     try:
         writeall_not_sandboxed(STDOUT, buf, msg.getlength())
     finally:



More information about the Pypy-commit mailing list