Commits

Maciej Fijalkowski committed 1de751a

don't widen floats

  • Participants
  • Parent commits ba43e6d

Comments (0)

Files changed (1)

pypy/rlib/rarithmetic.py

     
     T = lltype.typeOf(arg)
     # XXX we cannot do arithmetics on small ints
-    arg = widen(arg)
+    if isinstance(arg, base_int):
+        arg = widen(arg)
     if rffi.sizeof(T) == 1:
         res = arg
     elif rffi.sizeof(T) == 2: