Author: Philip Jenvey <[email protected]>
Branch: remove-intlong-smm
Changeset: r68583:f952d1bece0a
Date: 2014-01-03 15:50 -0800
http://bitbucket.org/pypy/pypy/changeset/f952d1bece0a/

Log:    fix regression: we want actual W_LongObjects here

diff --git a/pypy/objspace/std/smalllongobject.py 
b/pypy/objspace/std/smalllongobject.py
--- a/pypy/objspace/std/smalllongobject.py
+++ b/pypy/objspace/std/smalllongobject.py
@@ -446,8 +446,8 @@
     try:
         return _pow_impl(space, r_longlong(space.int_w(w_int1)), w_int2)
     except (OverflowError, ValueError):
-        w_a = w_int1.descr_long(space)
-        w_b = w_int2.descr_long(space)
+        w_a = _small2long(space, w_int1)
+        w_b = _small2long(space, w_int2)
         return w_a.descr_pow(space, w_b, space.w_None)
 
 def neg_ovr(space, w_int):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to