Commit 36283e52 authored by Stefan Behnel's avatar Stefan Behnel

fix passing a C string literal into a void* argument (used in "withgil" test):...

fix passing a C string literal into a void* argument (used in "withgil" test): now requires an explicit cast in C++
parent dcc84ee5
......@@ -1324,7 +1324,7 @@ class BytesNode(ConstNode):
elif dst_type in (PyrexTypes.c_char_ptr_type, PyrexTypes.c_const_char_ptr_type):
node.type = dst_type
return node
elif dst_type in (PyrexTypes.c_uchar_ptr_type, PyrexTypes.c_const_uchar_ptr_type):
elif dst_type in (PyrexTypes.c_uchar_ptr_type, PyrexTypes.c_const_uchar_ptr_type, PyrexTypes.c_void_ptr_type):
node.type = (PyrexTypes.c_const_char_ptr_type if dst_type == PyrexTypes.c_const_uchar_ptr_type
else PyrexTypes.c_char_ptr_type)
return CastNode(node, dst_type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment