[pypy-commit] pypy win64_gborg: fixed test_compute_hash

ctismer noreply at buildbot.pypy.org
Wed Nov 9 20:51:44 CET 2011


Author: Christian Tismer <tismer at stackless.com>
Branch: win64_gborg
Changeset: r49056:de489f7cb78d
Date: 2011-11-09 20:50 +0100
http://bitbucket.org/pypy/pypy/changeset/de489f7cb78d/

Log:	fixed test_compute_hash

diff --git a/pypy/rpython/lltypesystem/opimpl.py b/pypy/rpython/lltypesystem/opimpl.py
--- a/pypy/rpython/lltypesystem/opimpl.py
+++ b/pypy/rpython/lltypesystem/opimpl.py
@@ -232,8 +232,8 @@
     # used in computing hashes
     if isinstance(x, AddressAsInt): x = llmemory.cast_adr_to_int(x.adr)
     if isinstance(y, AddressAsInt): y = llmemory.cast_adr_to_int(y.adr)
-    assert isinstance(x, int)
-    assert isinstance(y, int)
+    assert isinstance(x, (int, long))
+    assert isinstance(y, (int, long))
     return x ^ y
 
 def op_int_mul(x, y):


More information about the pypy-commit mailing list