[pypy-commit] pypy default: hopefully fix annenforceargs

fijal noreply at buildbot.pypy.org
Thu Oct 6 04:05:37 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r47839:9af0a17b33a8
Date: 2011-10-06 04:04 +0200
http://bitbucket.org/pypy/pypy/changeset/9af0a17b33a8/

Log:	hopefully fix annenforceargs

diff --git a/pypy/rpython/lltypesystem/rstr.py b/pypy/rpython/lltypesystem/rstr.py
--- a/pypy/rpython/lltypesystem/rstr.py
+++ b/pypy/rpython/lltypesystem/rstr.py
@@ -694,8 +694,8 @@
             return -1
         return count
 
+    @enforceargs(int, None)
     @jit.look_inside_iff(lambda length, items: jit.isconstant(length) and length <= 2)
-    @enforceargs(int, None)
     def ll_join_strs(length, items):
         # Special case for length 1 items, helps both the JIT and other code
         if length == 1:


More information about the pypy-commit mailing list