Author: Maciej Fijalkowski <[email protected]>
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
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit