Skip to content
Snippets Groups Projects
Commit 89f158d0 authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'bugfix-avoid-east-and-west-const' into 'master'

Bugfix avoid east and west const

See merge request pycodegen/pystencils!64
parents 0ff425f3 83b7c8cc
No related merge requests found
......@@ -229,7 +229,7 @@ class CBackend:
prefix = 'const '
else:
prefix = ''
data_type = prefix + self._print(node.lhs.dtype) + " "
data_type = prefix + self._print(node.lhs.dtype).replace(' const', '') + " "
return "%s%s = %s;" % (data_type, self.sympy_printer.doprint(node.lhs),
self.sympy_printer.doprint(node.rhs))
else:
......
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