fix typecast testcase, int and pointer have different sizes in 64 bits
authorLisandro Dalcin <dalcinl@gmail.com>
Wed, 11 Mar 2009 13:36:55 +0000 (11:36 -0200)
committerLisandro Dalcin <dalcinl@gmail.com>
Wed, 11 Mar 2009 13:36:55 +0000 (11:36 -0200)
tests/compile/typecast.pyx

index 93c1d2c6444af7e754a23673789b311cfb1a36aa..9551afb765ed829abc57000006efddeb4a2881b0 100644 (file)
@@ -1,7 +1,7 @@
 cdef void f(obj):
     cdef int i=0
     cdef char *p
-    p = <char *>i
+    p = <char *>&i
     obj = <object>p
     p = <char *>obj