Author: Alex Gaynor <[email protected]>
Branch:
Changeset: r46853:f4138efe4da1
Date: 2011-08-28 04:38 -0400
http://bitbucket.org/pypy/pypy/changeset/f4138efe4da1/
Log: Fix for rffi.sizeof(llmemory.Address), I didn't break it, but it now
happens to be called.
diff --git a/pypy/rpython/lltypesystem/rffi.py
b/pypy/rpython/lltypesystem/rffi.py
--- a/pypy/rpython/lltypesystem/rffi.py
+++ b/pypy/rpython/lltypesystem/rffi.py
@@ -876,7 +876,7 @@
if size is None:
size = llmemory.sizeof(tp) # a symbolic result in this case
return size
- if isinstance(tp, lltype.Ptr):
+ if isinstance(tp, lltype.Ptr) or tp is llmemory.Address:
tp = ULONG # XXX!
if tp is lltype.Char or tp is lltype.Bool:
return 1
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit