From 626e661ecf4003022268c5fd715b063728464c3d Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Fri, 17 Nov 2023 17:52:59 +0100 Subject: [PATCH] [csharp] Fixed compile error on e.g. Unity version 2017.1 not supporting 0b111 litterals. --- spine-csharp/src/SkeletonBinary.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-csharp/src/SkeletonBinary.cs b/spine-csharp/src/SkeletonBinary.cs index 3068d1267..4c2aef189 100644 --- a/spine-csharp/src/SkeletonBinary.cs +++ b/spine-csharp/src/SkeletonBinary.cs @@ -431,7 +431,7 @@ namespace Spine { int flags = input.ReadByte(); string name = (flags & 8) != 0 ? input.ReadStringRef() : attachmentName; - switch ((AttachmentType)(flags & 0b111)) { + switch ((AttachmentType)(flags & 0x7)) { // 0b111 case AttachmentType.Region: { string path = (flags & 16) != 0 ? input.ReadStringRef() : null; uint color = (flags & 32) != 0 ? (uint)input.ReadInt() : 0xffffffff;