[pypy-commit] pypy default: (wlav) fix the error message

antocuni noreply at buildbot.pypy.org
Tue Feb 14 09:38:11 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: 
Changeset: r52437:71ccfad2a7cd
Date: 2012-02-14 09:37 +0100
http://bitbucket.org/pypy/pypy/changeset/71ccfad2a7cd/

Log:	(wlav) fix the error message

diff --git a/pypy/rlib/libffi.py b/pypy/rlib/libffi.py
--- a/pypy/rlib/libffi.py
+++ b/pypy/rlib/libffi.py
@@ -238,7 +238,7 @@
         self = jit.promote(self)
         if argchain.numargs != len(self.argtypes):
             raise TypeError, 'Wrong number of arguments: %d expected, got %d' %\
-                (argchain.numargs, len(self.argtypes))
+                (len(self.argtypes), argchain.numargs)
         ll_args = self._prepare()
         i = 0
         arg = argchain.first


More information about the pypy-commit mailing list