Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r50128:a3afe9f1db72
Date: 2011-12-04 16:38 +0100
http://bitbucket.org/pypy/pypy/changeset/a3afe9f1db72/

Log:    Don't care about forbidding negative values. The issue is that
        Win32 really uses all 32 bits for its error codes...

diff --git a/pypy/module/_rawffi/interp_rawffi.py 
b/pypy/module/_rawffi/interp_rawffi.py
--- a/pypy/module/_rawffi/interp_rawffi.py
+++ b/pypy/module/_rawffi/interp_rawffi.py
@@ -543,7 +543,7 @@
     from pypy.rlib.rwin32 import GetLastError
     return space.wrap(GetLastError())
 
-@unwrap_spec(error='nonnegint')
+@unwrap_spec(error=int)
 def set_last_error(space, error):
     from pypy.rlib.rwin32 import SetLastError
     SetLastError(error)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to