[pypy-commit] pypy default: Attempt to fix test_tcl on 32bit platforms

amauryfa noreply at buildbot.pypy.org
Wed Jun 24 00:01:02 CEST 2015


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r78278:9fa66d2aa78b
Date: 2015-06-24 00:01 +0200
http://bitbucket.org/pypy/pypy/changeset/9fa66d2aa78b/

Log:	Attempt to fix test_tcl on 32bit platforms

	(there is no WideInt at all on 64bit)

diff --git a/lib_pypy/_tkinter/tclobj.py b/lib_pypy/_tkinter/tclobj.py
--- a/lib_pypy/_tkinter/tclobj.py
+++ b/lib_pypy/_tkinter/tclobj.py
@@ -108,6 +108,8 @@
         return value.internalRep.doubleValue
     if value.typePtr == typeCache.IntType:
         return value.internalRep.longValue
+    if value.typePtr == typeCache.WideIntType:
+        return FromWideIntObj(app, value)
     if value.typePtr == typeCache.BigNumType and tklib.HAVE_LIBTOMMATH:
         return FromBignumObj(app, value)
     if value.typePtr == typeCache.ListType:


More information about the pypy-commit mailing list