From: Lisandro Dalcin Date: Tue, 7 Apr 2009 21:22:36 +0000 (-0300) Subject: use a "size_t" integral for casting to "char*" pointer in typecast testcase X-Git-Tag: 0.12.alpha0~327^2~1^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=662e58836b689bbe5121f5e5f8ae0f3a4df065c9;p=cython.git use a "size_t" integral for casting to "char*" pointer in typecast testcase This silents GCC warnings (in 64 bits) about casting integer to pointer of different size. --- diff --git a/tests/compile/typecast.pyx b/tests/compile/typecast.pyx index c9db7444..f56a9be8 100644 --- a/tests/compile/typecast.pyx +++ b/tests/compile/typecast.pyx @@ -1,5 +1,5 @@ cdef void f(obj): - cdef int i=0 + cdef size_t i=0 cdef char *p p = i p = &i