From cab4b3b8e3a4a2822e459e5f103e49fcab16efaf Mon Sep 17 00:00:00 2001 From: Julian Lettner Date: Wed, 3 Jun 2020 15:24:53 -0700 Subject: [PATCH] Fix bug in newly added VersionBase::operator>= Fixup for ba6b1b4353e33a7a36bcbad1d1c1157826197fd2. --- compiler-rt/lib/sanitizer_common/sanitizer_mac.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_mac.h b/compiler-rt/lib/sanitizer_common/sanitizer_mac.h index 806aba9..922307a 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_mac.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_mac.h @@ -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); } }; -- 2.7.4