Fix bug in newly added VersionBase::operator>=
authorJulian Lettner <julian.lettner@apple.com>
Wed, 3 Jun 2020 22:24:53 +0000 (15:24 -0700)
committerJulian Lettner <julian.lettner@apple.com>
Wed, 3 Jun 2020 22:26:36 +0000 (15:26 -0700)
Fixup for ba6b1b4353e33a7a36bcbad1d1c1157826197fd2.

compiler-rt/lib/sanitizer_common/sanitizer_mac.h

index 806aba9..922307a 100644 (file)
@@ -41,7 +41,7 @@ struct VersionBase {
     return major == other.major && minor == other.minor;
   }
   bool operator>=(const VersionType &other) const {
-    return major >= other.major ||
+    return major > other.major ||
            (major == other.major && minor >= other.minor);
   }
 };