Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: 
Changeset: r53798:1de751aac608
Date: 2012-03-19 11:18 +0200
http://bitbucket.org/pypy/pypy/changeset/1de751aac608/

Log:    don't widen floats

diff --git a/pypy/rlib/rarithmetic.py b/pypy/rlib/rarithmetic.py
--- a/pypy/rlib/rarithmetic.py
+++ b/pypy/rlib/rarithmetic.py
@@ -578,7 +578,8 @@
     
     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:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to