projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6043639
)
use a "size_t" integral for casting to "char*" pointer in typecast testcase
author
Lisandro Dalcin
<dalcinl@gmail.com>
Tue, 7 Apr 2009 21:22:36 +0000
(18:22 -0300)
committer
Lisandro 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
patch
|
blob
|
history
diff --git
a/tests/compile/typecast.pyx
b/tests/compile/typecast.pyx
index c9db7444f193c129761a8c1dd656b1a8b85976ae..f56a9be8727322368440c5eab55633946946def5 100644
(file)
--- a/
tests/compile/typecast.pyx
+++ b/
tests/compile/typecast.pyx
@@
-1,5
+1,5
@@
cdef void f(obj):
- cdef
in
t i=0
+ cdef
size_
t i=0
cdef char *p
p = <char *>i
p = <char *>&i