Author: Carl Friedrich Bolz <[email protected]>
Branch: space-newtext
Changeset: r88104:7e4212bebd66
Date: 2016-11-03 08:30 +0100
http://bitbucket.org/pypy/pypy/changeset/7e4212bebd66/
Log: fix small longs
diff --git a/pypy/objspace/std/objspace.py b/pypy/objspace/std/objspace.py
--- a/pypy/objspace/std/objspace.py
+++ b/pypy/objspace/std/objspace.py
@@ -242,7 +242,7 @@
@specialize.argtype(1)
def newint(self, intval):
- if self.config.objspace.std.withsmalllong:
+ if self.config.objspace.std.withsmalllong and isinstance(intval,
base_int):
from pypy.objspace.std.smalllongobject import W_SmallLongObject
from rpython.rlib.rarithmetic import r_longlong, r_ulonglong
from rpython.rlib.rarithmetic import longlongmax
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit