Browse Source

Fixed infinite recursion

pull/32/head
Anairkoen Schno 5 years ago
parent
commit
ff926251e9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA.Loader/Utilities/AlmostVersion.cs

+ 2
- 2
IPA.Loader/Utilities/AlmostVersion.cs View File

@ -206,8 +206,8 @@ namespace IPA.Utilities
/// <seealso cref="Equals(object)"/>
public static bool operator==(AlmostVersion l, AlmostVersion r)
{
if (l == null && r == null) return true;
if (l == null || r == null) return false;
if (ReferenceEquals(l, null) && ReferenceEquals(r, null)) return true;
if (ReferenceEquals(l, null) || ReferenceEquals(r, null)) return false;
if (l.StorageMode != r.StorageMode) return false;
if (l.StorageMode == StoredAs.SemVer)
return Utils.VersionCompareNoPrerelease(l.SemverValue, r.SemverValue) == 0;


Loading…
Cancel
Save