Skip to content

Commit 144608c

Browse files
even tho we may never have more than 32. support 42
1 parent 4979ccc commit 144608c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/MixedRealityToolkit/_Core/Utilities/PlatformUtility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static class PlatformUtility
1010
{
1111
public static bool IsPlatformSupported(this RuntimePlatform runtimePlatform, SupportedPlatforms platform)
1212
{
13-
if (platform < 0)
13+
if (platform == (SupportedPlatforms)(-1))
1414
{
1515
return true;
1616
}
@@ -44,7 +44,7 @@ public static bool IsPlatformSupported(this RuntimePlatform runtimePlatform, Sup
4444
#if UNITY_EDITOR
4545
public static bool IsPlatformSupported(this UnityEditor.BuildTarget editorBuildTarget, SupportedPlatforms platform)
4646
{
47-
if (platform < 0)
47+
if (platform == (SupportedPlatforms)(-1))
4848
{
4949
return true;
5050
}

0 commit comments

Comments
 (0)