use a "size_t" integral for casting to "char*" pointer in typecast testcase
authorLisandro Dalcin <dalcinl@gmail.com>
Tue, 7 Apr 2009 21:22:36 +0000 (18:22 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Tue, 7 Apr 2009 21:22:36 +0000 (18:22 -0300)
This silents GCC warnings (in 64 bits) about casting integer to pointer of different size.

tests/compile/typecast.pyx

index c9db7444f193c129761a8c1dd656b1a8b85976ae..f56a9be8727322368440c5eab55633946946def5 100644 (file)
@@ -1,5 +1,5 @@
 cdef void f(obj):
-    cdef int i=0
+    cdef size_t i=0
     cdef char *p
     p = <char *>i
     p = <char *>&i