From eb0ae32dc7fc64076df1ba6b47c9425f7e550255 Mon Sep 17 00:00:00 2001 From: Frederik Hennig <frederik.hennig@fau.de> Date: Tue, 2 Apr 2024 10:36:12 +0200 Subject: [PATCH] fix symbol name --- src/pystencils/backend/kernelcreation/typification.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pystencils/backend/kernelcreation/typification.py b/src/pystencils/backend/kernelcreation/typification.py index 6cb42fce0..ec615d8f4 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) -- GitLab