Преглед изворни кода

[csharp] Fixed compile error on e.g. Unity version 2017.1 not supporting 0b111 litterals.

Harald Csaszar пре 1 година
родитељ
комит
626e661ecf
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      spine-csharp/src/SkeletonBinary.cs

+ 1 - 1
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;