[pypy-commit] pypy default: Don't care about forbidding negative values. The issue is that Win32 really uses all 32 bits for its error codes...

arigo noreply at buildbot.pypy.org
Sun Dec 4 17:40:44 CET 2011


Author: Armin Rigo <arigo at tunes.org>
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())
 
- at unwrap_spec(error='nonnegint')
+ at unwrap_spec(error=int)
 def set_last_error(space, error):
     from pypy.rlib.rwin32 import SetLastError
     SetLastError(error)


More information about the pypy-commit mailing list