[pypy-commit] pypy default: add another signature to a string method to fix a random translation error
cfbolz
noreply at buildbot.pypy.org
Mon May 19 14:39:46 CEST 2014
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch:
Changeset: r71589:fbe93314fa42
Date: 2014-05-19 11:50 +0100
http://bitbucket.org/pypy/pypy/changeset/fbe93314fa42/
Log: add another signature to a string method to fix a random translation
error
diff --git a/rpython/rtyper/lltypesystem/rstr.py b/rpython/rtyper/lltypesystem/rstr.py
--- a/rpython/rtyper/lltypesystem/rstr.py
+++ b/rpython/rtyper/lltypesystem/rstr.py
@@ -834,6 +834,7 @@
def ll_stringslice_startonly(s1, start):
return LLHelpers._ll_stringslice(s1, start, len(s1.chars))
+ @signature(types.any(), types.int(), types.int(), returns=types.any())
def ll_stringslice_startstop(s1, start, stop):
if jit.we_are_jitted():
if stop > len(s1.chars):
More information about the pypy-commit
mailing list