Commit 12a2ad5a authored by da-woods's avatar da-woods Committed by GitHub

Don't create CReference in C (only c++) (GH-3746)

parent 5d8527d1
......@@ -10346,7 +10346,10 @@ class DereferenceNode(CUnopNode):
def analyse_c_operation(self, env):
if self.operand.type.is_ptr:
self.type = PyrexTypes.CReferenceType(self.operand.type.base_type)
if env.is_cpp:
self.type = PyrexTypes.CReferenceType(self.operand.type.base_type)
else:
self.type = self.operand.type.base_type
else:
self.type_error()
......
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