Commit 7302010f authored by Mark Florisson's avatar Mark Florisson

Don't cast arguments when calling function wrapper (MSVC does not allow casting structs)

parent 019017ae
......@@ -3181,7 +3181,7 @@ class DefNodeWrapper(FuncDefNode):
if self.signature.has_dummy_arg:
args.append(Naming.self_cname)
for arg in self.args:
if arg.hdr_type:
if arg.hdr_type and not (arg.type.is_memoryviewslice or arg.type.is_struct):
args.append(arg.type.cast_code(arg.entry.cname))
else:
args.append(arg.entry.cname)
......
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