1. Pypy
  2. Untitled project
  3. pypy

Commits

Philip Jenvey  committed f952d1b

fix regression: we want actual W_LongObjects here

  • Participants
  • Parent commits dbe309c
  • Branches remove-intlong-smm

Comments (0)

Files changed (1)

File pypy/objspace/std/smalllongobject.py

View file
  • Ignore whitespace
     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):