From: Lisandro Dalcin Date: Wed, 10 Mar 2010 00:48:49 +0000 (-0300) Subject: fix tescase for cast to pointer from integer of different size in 64bits X-Git-Tag: 0.13.beta0~319^2~7^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6d56f1088d9e793deea5b9a3d2d0f16e1d5d4180;p=cython.git fix tescase for cast to pointer from integer of different size in 64bits --- 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): """