[pypy-svn] r73277 - pypy/branch/cpython-extension/pypy/module/cpyext

fijal at codespeak.net fijal at codespeak.net
Fri Apr 2 03:09:14 CEST 2010


Author: fijal
Date: Fri Apr  2 03:09:13 2010
New Revision: 73277

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py
Log:
This should return 1 on success, 0 on failure, pass the first test (yay!)


Modified: pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/getargs.py	Fri Apr  2 03:09:13 2010
@@ -9,15 +9,14 @@
     pass
 
 @cpython_api([PyObject, rffi.CCHARP, VA_LIST_P, rffi.INT_real],
-             rffi.INT_real, error=-1)
+             rffi.INT_real, error=0)
 def pypy_vgetargs1(space, w_obj, fmt, va_list_p, lgt):
     i = 0
     while True:
         c = fmt[i]
         if c == "\x00":
-            return 0
+            return 1
         if c == "i":
             arr = api.va_get_int_star(va_list_p)
             arr[0] = space.int_w(space.getitem(w_obj, space.wrap(i)))
         i += 1
-    return 0



More information about the Pypy-commit mailing list