From be7c26440a6921d07ae47f0649c9eccf019e494e Mon Sep 17 00:00:00 2001 From: Setsugennoao <41454651+Setsugennoao@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:59:33 +0200 Subject: [PATCH] Fix TernalryPixelAccessOperator str formatting --- vsexprtools/operators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsexprtools/operators.py b/vsexprtools/operators.py index f0eb196..428fdda 100644 --- a/vsexprtools/operators.py +++ b/vsexprtools/operators.py @@ -140,7 +140,7 @@ def __str__(self) -> str: if not hasattr(self, 'char'): raise ValueError('TernaryPixelAccessOperator: You have to call set_vars!') - return self.rpn_name.format(char=str(self.char), x=str(self.x), y=str(self.y)) + return self.rpn_name.format(char=str(self.char), x=int(self.x), y=int(self.y)) class ExprOperators: