From b5dd8c1c77a5b0f3dff8f1ee6752bafcb75079a5 Mon Sep 17 00:00:00 2001 From: x64BitWorm <62725794+x64BitWorm@users.noreply.github.com> Date: Sun, 8 Mar 2026 18:05:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=D0=B2=D0=B5=D0=B4=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D1=82=D0=B8=D0=BF=D0=B0=20=D0=B2=20enum=20(#3393)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ilep --- TreeConverter/SystemLib/static_executors.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TreeConverter/SystemLib/static_executors.cs b/TreeConverter/SystemLib/static_executors.cs index 2d61a219e..cab8c47c5 100644 --- a/TreeConverter/SystemLib/static_executors.cs +++ b/TreeConverter/SystemLib/static_executors.cs @@ -5032,7 +5032,7 @@ namespace PascalABCCompiler.SystemLibrary { static_compiled_variable_reference cvr = parameters[0] as static_compiled_variable_reference; if (cvr.var.IsLiteral) - left = new enum_const_node((int)cvr.var.compiled_field.GetRawConstantValue(), parameters[0].type, parameters[0].location); + left = new enum_const_node(Convert.ToInt32(cvr.var.compiled_field.GetRawConstantValue()), parameters[0].type, parameters[0].location); } if (left == null) return null; @@ -5041,7 +5041,7 @@ namespace PascalABCCompiler.SystemLibrary { static_compiled_variable_reference cvr = parameters[1] as static_compiled_variable_reference; if (cvr.var.IsLiteral) - right = new enum_const_node((int)cvr.var.compiled_field.GetRawConstantValue(), parameters[1].type, parameters[1].location); + right = new enum_const_node(Convert.ToInt32(cvr.var.compiled_field.GetRawConstantValue()), parameters[1].type, parameters[1].location); } if (right == null) return null; @@ -5056,7 +5056,7 @@ namespace PascalABCCompiler.SystemLibrary { static_compiled_variable_reference cvr = parameters[0] as static_compiled_variable_reference; if (cvr.var.IsLiteral) - left = new enum_const_node((int)cvr.var.compiled_field.GetRawConstantValue(), parameters[0].type, parameters[0].location); + left = new enum_const_node(Convert.ToInt32(cvr.var.compiled_field.GetRawConstantValue()), parameters[0].type, parameters[0].location); } if (left == null) return null; @@ -5065,7 +5065,7 @@ namespace PascalABCCompiler.SystemLibrary { static_compiled_variable_reference cvr = parameters[1] as static_compiled_variable_reference; if (cvr.var.IsLiteral) - right = new enum_const_node((int)cvr.var.compiled_field.GetRawConstantValue(), parameters[1].type, parameters[1].location); + right = new enum_const_node(Convert.ToInt32(cvr.var.compiled_field.GetRawConstantValue()), parameters[1].type, parameters[1].location); } if (right == null) return null; @@ -5079,7 +5079,7 @@ namespace PascalABCCompiler.SystemLibrary { static_compiled_variable_reference cvr = parameters[0] as static_compiled_variable_reference; if (cvr.var.IsLiteral) - left = new enum_const_node((int)cvr.var.compiled_field.GetRawConstantValue(), parameters[0].type, parameters[0].location); + left = new enum_const_node(Convert.ToInt32(cvr.var.compiled_field.GetRawConstantValue()), parameters[0].type, parameters[0].location); } if (left == null) return null; @@ -5088,7 +5088,7 @@ namespace PascalABCCompiler.SystemLibrary { static_compiled_variable_reference cvr = parameters[1] as static_compiled_variable_reference; if (cvr.var.IsLiteral) - right = new enum_const_node((int)cvr.var.compiled_field.GetRawConstantValue(), parameters[1].type, parameters[1].location); + right = new enum_const_node(Convert.ToInt32(cvr.var.compiled_field.GetRawConstantValue()), parameters[1].type, parameters[1].location); } if (right == null) return null;