Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r74775:739ecaa8a1c0
Date: 2014-12-01 16:12 +0200
http://bitbucket.org/pypy/pypy/changeset/739ecaa8a1c0/

Log:    I never get those right

diff --git a/rpython/rtyper/rlist.py b/rpython/rtyper/rlist.py
--- a/rpython/rtyper/rlist.py
+++ b/rpython/rtyper/rlist.py
@@ -984,13 +984,13 @@
 #  Comparison.
 
 def listeq_unroll_case(l1, l2, eqfn):
-    if jit.isvirtual(l1) and len(l1) < 10:
+    if jit.isvirtual(l1) and l1.ll_length() < 10:
         return True
-    if jit.isvirtual(l2) and len(l2) < 10:
+    if jit.isvirtual(l2) and l2.ll_length() < 10:
         return True
     return False
 
[email protected]_iff(listeq_unroll_case)
[email protected]_inside_iff(listeq_unroll_case)
 def ll_listeq(l1, l2, eqfn):
     if not l1 and not l2:
         return True
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to