Author: Armin Rigo <ar...@tunes.org> Branch: cffi-1.0 Changeset: r77205:2d4dbe8a974f Date: 2015-05-08 11:11 +0200 http://bitbucket.org/pypy/pypy/changeset/2d4dbe8a974f/
Log: fix test diff --git a/pypy/module/_cffi_backend/test/test_parse_c_type.py b/pypy/module/_cffi_backend/test/test_parse_c_type.py --- a/pypy/module/_cffi_backend/test/test_parse_c_type.py +++ b/pypy/module/_cffi_backend/test/test_parse_c_type.py @@ -75,8 +75,9 @@ _helpers_keepalive.append(llf) ctx_globals[_i].c_name = c_glob_names[_i] ctx_globals[_i].c_address = rffi.cast(rffi.VOIDP, llf) - ctx_globals[_i].c_type_op = (cffi_opcode.OP_CONSTANT_INT if _i != 1 - else cffi_opcode.OP_ENUM) + type_op = (cffi_opcode.OP_CONSTANT_INT if _i != 1 + else cffi_opcode.OP_ENUM) + ctx_globals[_i].c_type_op = rffi.cast(rffi.VOIDP, type_op) ctx.c_globals = ctx_globals rffi.setintfield(ctx, 'c_num_globals', len(global_names)) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit