From 415c5f55606bcb9f462f21a822deeea626bb23df Mon Sep 17 00:00:00 2001 From: Kurt Date: Tue, 1 Mar 2022 19:09:42 -0800 Subject: [PATCH] Update SCTypeCode.cs --- PKHeX.Core/Saves/Encryption/SwishCrypto/SCTypeCode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKHeX.Core/Saves/Encryption/SwishCrypto/SCTypeCode.cs b/PKHeX.Core/Saves/Encryption/SwishCrypto/SCTypeCode.cs index 6ab43434c..7f2d12bca 100644 --- a/PKHeX.Core/Saves/Encryption/SwishCrypto/SCTypeCode.cs +++ b/PKHeX.Core/Saves/Encryption/SwishCrypto/SCTypeCode.cs @@ -32,7 +32,7 @@ public enum SCTypeCode : byte public static class SCTypeCodeExtensions { - public static bool IsBoolean(this SCTypeCode type) => (byte)type - 1 < 3; + public static bool IsBoolean(this SCTypeCode type) => unchecked((uint)type - 1) < 3; public static int GetTypeSize(this SCTypeCode type) => type switch {