[pypy-svn] r45247 - pypy/dist/pypy/rpython/module

fijal at codespeak.net fijal at codespeak.net
Sun Jul 22 15:23:49 CEST 2007


Author: fijal
Date: Sun Jul 22 15:23:48 2007
New Revision: 45247

Modified:
   pypy/dist/pypy/rpython/module/ll_os.py
Log:
Make os.write return nonneg integer


Modified: pypy/dist/pypy/rpython/module/ll_os.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_os.py	(original)
+++ pypy/dist/pypy/rpython/module/ll_os.py	Sun Jul 22 15:23:48 2007
@@ -204,7 +204,8 @@
 def os_write_oofakeimpl(fd, data):
     return os.write(fd, OOSupport.from_rstr(data))
 
-register_external(os.write, [int, str], int, "ll_os.ll_os_write",
+register_external(os.write, [int, str], SomeInteger(nonneg=True)
+                  , "ll_os.ll_os_write",
                   llimpl=os_write_lltypeimpl, oofakeimpl=os_write_oofakeimpl)
 
 # '--sandbox' support



More information about the Pypy-commit mailing list