Update SCTypeCode.cs

This commit is contained in:
Kurt
2022-03-01 19:09:42 -08:00
parent 8c9c5e0198
commit 415c5f5560

View File

@@ -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
{