[pypy-svn] r77462 - pypy/trunk/pypy/rpython/lltypesystem

arigo at codespeak.net arigo at codespeak.net
Wed Sep 29 13:03:52 CEST 2010


Author: arigo
Date: Wed Sep 29 13:03:50 2010
New Revision: 77462

Modified:
   pypy/trunk/pypy/rpython/lltypesystem/rstr.py
Log:
Add an _annenforceargs_ to prevent some random translation failures.


Modified: pypy/trunk/pypy/rpython/lltypesystem/rstr.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/rstr.py	(original)
+++ pypy/trunk/pypy/rpython/lltypesystem/rstr.py	Wed Sep 29 13:03:50 2010
@@ -703,6 +703,7 @@
         s1.copy_contents(s1, newstr, start, 0, lgt)
         return newstr
     _ll_stringslice.oopspec = 'stroruni.slice(s1, start, stop)'
+    _ll_stringslice._annenforceargs_ = [None, int, int]
 
     def ll_stringslice_startonly(s1, start):
         return LLHelpers._ll_stringslice(s1, start, len(s1.chars))



More information about the Pypy-commit mailing list