mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-13 16:35:14 -05:00
Update SCTypeCode.cs
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user