Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r80722:a32752f2c531
Date: 2015-11-17 09:23 +0100
http://bitbucket.org/pypy/pypy/changeset/a32752f2c531/

Log:    Skip a pointless failure showing up on Windows because some
        functions are not aligned to 16 bytes

diff --git a/rpython/rtyper/lltypesystem/lltype.py 
b/rpython/rtyper/lltypesystem/lltype.py
--- a/rpython/rtyper/lltypesystem/lltype.py
+++ b/rpython/rtyper/lltypesystem/lltype.py
@@ -1469,7 +1469,10 @@
         result = intmask(obj._getid())
         # assume that id() returns an addressish value which is
         # not zero and aligned to at least a multiple of 4
-        assert result != 0 and (result & 3) == 0
+        # (at least for GC pointers; we can't really assume anything
+        # for raw addresses)
+        if self._T._gckind == 'gc':
+            assert result != 0 and (result & 3) == 0
         return result
 
     def _cast_to_adr(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to