[pypy-svn] r22248 - pypy/dist/pypy/rpython/memory
mwh at codespeak.net
mwh at codespeak.net
Tue Jan 17 12:50:19 CET 2006
Author: mwh
Date: Tue Jan 17 12:50:19 2006
New Revision: 22248
Modified:
pypy/dist/pypy/rpython/memory/lladdress.py
Log:
an assert that would have caught the above mentioned slip, and various others
i've been making in the last half hour.
Modified: pypy/dist/pypy/rpython/memory/lladdress.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/lladdress.py (original)
+++ pypy/dist/pypy/rpython/memory/lladdress.py Tue Jan 17 12:50:19 2006
@@ -141,6 +141,7 @@
pass
def offsetof(TYPE, fldname):
+ assert fldname in TYPE._flds
return OffsetOf(TYPE, fldname)
def itemoffsetof(TYPE, n=None):
More information about the Pypy-commit
mailing list