[pypy-svn] r47247 - pypy/branch/kill-keepalives-again/pypy/annotation

cfbolz at codespeak.net cfbolz at codespeak.net
Sat Oct 6 23:52:55 CEST 2007

Author: cfbolz
Date: Sat Oct  6 23:52:54 2007
New Revision: 47247

humpf, if you do something like cast_ptr_to_adr(array_of_structs[0]) you get
the address of a newly allocated structure representing the interior pointer to
the first struct in the array.

Modified: pypy/branch/kill-keepalives-again/pypy/annotation/builtin.py
--- pypy/branch/kill-keepalives-again/pypy/annotation/builtin.py	(original)
+++ pypy/branch/kill-keepalives-again/pypy/annotation/builtin.py	Sat Oct  6 23:52:54 2007
@@ -325,6 +325,8 @@
     return immutablevalue(None)
 def llmemory_cast_ptr_to_adr(s):
+    from pypy.annotation.model import SomeInteriorPtr
+    assert not isinstance(s, SomeInteriorPtr)
     return SomeAddress()
 def llmemory_cast_adr_to_ptr(s, s_type):

More information about the Pypy-commit mailing list