Commit 9ec103c3 authored by MegaIng's avatar MegaIng Committed by Stefan Behnel

Remove illegal casting of structs when using ctuple (GH-3599)

Closes #3038.
parent 48b3fcfc
...@@ -4034,6 +4034,9 @@ class CTupleType(CType): ...@@ -4034,6 +4034,9 @@ class CTupleType(CType):
env.use_utility_code(self._convert_from_py_code) env.use_utility_code(self._convert_from_py_code)
return True return True
def cast_code(self, expr_code):
return expr_code
def c_tuple_type(components): def c_tuple_type(components):
components = tuple(components) components = tuple(components)
......
...@@ -6,7 +6,6 @@ initial_file_path ...@@ -6,7 +6,6 @@ initial_file_path
package_compilation package_compilation
carray_coercion carray_coercion
ctuple
int_float_builtins_as_casts_T400 int_float_builtins_as_casts_T400
int_float_builtins_as_casts_T400_long_double int_float_builtins_as_casts_T400_long_double
list_pop list_pop
......
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