diff options
author | Ulrich Weigand <ulrich.weigand@de.ibm.com> | 2022-10-06 16:08:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 16:08:55 +0300 |
commit | 4cb02dbdffff3899a65f95f87c7a9afacffd78f9 (patch) | |
tree | 05e37c2b1cf6b492a29bbd96c7e85098d73adce9 /mono | |
parent | 0380dacce8feb9a96e42a1475a46da8255f08c12 (diff) |
Fix incorrect version comparison in loader (#21553)
* Backport https://github.com/dotnet/runtime/pull/76665
Diffstat (limited to 'mono')
-rw-r--r-- | mono/metadata/assembly.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mono/metadata/assembly.c b/mono/metadata/assembly.c index 5a2ddad4e75..430a86b9952 100644 --- a/mono/metadata/assembly.c +++ b/mono/metadata/assembly.c @@ -749,7 +749,7 @@ mono_assembly_names_equal_flags (MonoAssemblyName *l, MonoAssemblyName *r, MonoA * if \p r is a lower version than \p l, or zero if \p l and \p r are equal * versions (comparing upto \p maxcomps components). * - * Components are \c major, \c minor, \c revision, and \c build. \p maxcomps 1 means just compare + * Components are \c major, \c minor, \c build, and \c revision. \p maxcomps 1 means just compare * majors. 2 means majors then minors. etc. */ static int @@ -765,9 +765,9 @@ assembly_names_compare_versions (MonoAssemblyName *l, MonoAssemblyName *r, int m ++i; CMP (minor); ++i; - CMP (revision); - ++i; CMP (build); + ++i; + CMP (revision); #undef CMP return 0; } |