diff --git a/src/pystencils/backend/kernelcreation/typification.py b/src/pystencils/backend/kernelcreation/typification.py index 6cb42fce0ac1e570a5b8c29fb63f687d12e504c7..ec615d8f4bdf7276fe6699ca0837cfc9b4fc2487 100644 --- a/src/pystencils/backend/kernelcreation/typification.py +++ b/src/pystencils/backend/kernelcreation/typification.py @@ -304,10 +304,10 @@ class Typifier: if ctr.symbol.dtype is None: ctr.symbol.apply_dtype(self._ctx.index_dtype) - tc_lhs = TypeContext(ctr.symbol.dtype) - self.visit_expr(start, tc_lhs) - self.visit_expr(stop, tc_lhs) - self.visit_expr(step, tc_lhs) + tc_index = TypeContext(ctr.symbol.dtype) + self.visit_expr(start, tc_index) + self.visit_expr(stop, tc_index) + self.visit_expr(step, tc_index) self.visit(body)