diff --git a/pystencils/backends/cbackend.py b/pystencils/backends/cbackend.py index ba7426a143f243f4a3991d575443e3b6b247f567..94f21c076b1069ed041ea9975fcaea80b080afcd 100644 --- a/pystencils/backends/cbackend.py +++ b/pystencils/backends/cbackend.py @@ -670,7 +670,7 @@ class VectorizedCustomSympyPrinter(CustomSympyPrinter): else: is_boolean = get_type_of_expression(arg) == create_type("bool") is_integer = get_type_of_expression(arg) == create_type("int") or \ - (isinstance(arg, TypedSymbol) and arg.dtype.is_int()) + (isinstance(arg, TypedSymbol) and not isinstance(arg.dtype, VectorType) and arg.dtype.is_int()) instruction = 'makeVecConstBool' if is_boolean else \ 'makeVecConstInt' if is_integer else 'makeVecConst' return self.instruction_set[instruction].format(self._print(arg), **self._kwargs)