From 6d56f1088d9e793deea5b9a3d2d0f16e1d5d4180 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Tue, 9 Mar 2010 21:48:49 -0300 Subject: [PATCH] fix tescase for cast to pointer from integer of different size in 64bits --- tests/run/ctruthtests.pyx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/run/ctruthtests.pyx b/tests/run/ctruthtests.pyx index f534f821..49951982 100644 --- a/tests/run/ctruthtests.pyx +++ b/tests/run/ctruthtests.pyx @@ -77,9 +77,16 @@ def test_attr_int(TestExtInt e): else: return False +ctypedef union _aux: + int i + void *p + cdef class TestExtPtr: cdef void* p - def __init__(self, int i): self.p = i + def __init__(self, int i): + cdef _aux aux + aux.i = i + self.p = aux.p def test_attr_ptr(TestExtPtr e): """ -- 2.26.2