Author: Armin Rigo <ar...@tunes.org> Branch: stm Changeset: r47729:48df9339565e Date: 2011-09-27 22:28 +0200 http://bitbucket.org/pypy/pypy/changeset/48df9339565e/
Log: Fix the test. diff --git a/pypy/translator/stm/test/test_rffi_stm.py b/pypy/translator/stm/test/test_rffi_stm.py --- a/pypy/translator/stm/test/test_rffi_stm.py +++ b/pypy/translator/stm/test/test_rffi_stm.py @@ -38,9 +38,9 @@ def callback1(x): assert a.x == -611 p = lltype.direct_fieldptr(a, 'x') - p = rffi.cast(rffi.VOIDPP, p) + p = rffi.cast(SignedP, p) assert rffi.cast(lltype.Signed, stm_read_word(p)) == -611 - stm_write_word(p, rffi.cast(rffi.VOIDP, 42 * a.y)) + stm_write_word(p, 42 * a.y) assert rffi.cast(lltype.Signed, stm_read_word(p)) == 42 * a.y assert a.x == -611 # xxx still the old value when reading non-transact. if a.y < 10: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit