From cf18a163ccfe16621f55bae41f14f91123b2c690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Wed, 29 Dec 2021 17:29:37 +0100 Subject: [PATCH] fix: allow to convert all enums using System.Convert class --- Core/NosSmooth.Packets/Converters/Special/EnumTypeConverter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/NosSmooth.Packets/Converters/Special/EnumTypeConverter.cs b/Core/NosSmooth.Packets/Converters/Special/EnumTypeConverter.cs index ff012a2..153a9ff 100644 --- a/Core/NosSmooth.Packets/Converters/Special/EnumTypeConverter.cs +++ b/Core/NosSmooth.Packets/Converters/Special/EnumTypeConverter.cs @@ -39,7 +39,7 @@ public class EnumTypeConverter : ISpecialTypeConverter return Result.FromSuccess(); } - builder.Append(((int)obj).ToString()); + builder.Append(Convert.ToInt64(obj).ToString()); return Result.FromSuccess(); } } \ No newline at end of file -- 2.49.0